forked from Mellanox/ib-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 783 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: go
go:
- "1.13"
env:
- IMAGE_NAME=mellanox/ib-kubernetes
before_script:
- go get -u github.com/mattn/goveralls
script:
- make
- make lint
- make test-coverage
- goveralls -coverprofile=coverage.out -service=travis-ci
- make image
before_deploy:
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
deploy:
# Push image to Dockerhub on merge to master
- provider: script
skip_cleanup: true
script: bash scripts/deploy.sh $IMAGE_NAME latest $TRAVIS_CPU_ARCH
on:
branch: master
# Push image to Dockerhub on tag
- provider: script
skip_cleanup: true
script: bash scripts/deploy.sh $IMAGE_NAME $TRAVIS_TAG $TRAVIS_CPU_ARCH
on:
tags: true
all_branches: true
condition: "$TRAVIS_TAG =~ ^v[0-9].*$"