-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
78 lines (68 loc) · 2.17 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: go
sudo: requried
dist: trusty
go:
# - 1.10.x
- 1.11.x
env:
global:
- PATH=$GOROOT/bin:$GOPATH/bin:$PATH
- secure: "h10fqhla7Q34jP+DImaZJ3YKHKd2L/Xc6Rm67pTwlo5FA2Lbr8/buvtEe6iTkfGyr9gP9ECJZ4zl1oq1r+fnUHXQX9XrCUgEC7yf+ve5YbvYjD37kxh5T11DzB+mHzrjoN1wlamL1HjKiKlXrelaijrZs2vOwqzDCf+UTzxUlAli8vKHYfqJcPTqqIOVlpRdawqr33uHzQuHu9AsRwZYUaaduKmPr4WJqlx/F5FgPgXe2/lPYQVqiRUgCC9TgFUzPYbewbddJsT0z+KogjTF9LbSqMxN87Gu5X/MDKGFTWvHzn20ub/Wm83II/gohUY9bGY6l8FtmEUxB3nRoPxqTxk6gqwIzmDfkjuDqZruwkuSiJ+cB2Kg1I/YNnnqRD6+5dP4iH1DrbpcUVgnlvxnOI/XkBYAqVToeH/OCLMFetn8S84PZNSDi3LIoozSrnoRcMCwfx+i4h/qeRNwGntVDoAFXCEvM6tsRQZsPWG4vh31hpVS0drne3jA0hi3TBZbKz/VgA6X5ayOgnwJ6gB8kbHZ3A5tBnIRUkajGO+V3OgBXMU7uA2q3r5lSsA+Z/Nt1iPZRpkcPgD58CR8uDBWSSYJVTKA074zKlfUjzEE/34Iy6qG4DaX6LffnRnzUzbFtGBeaaRQxtSoFfPdRwziErXcBrCbLcMMNz2LUw6aClw="
matrix:
- TARGET=386
- TARGET=amd64
# - TARGET=arm
# - TARGET=arm64
# - TARGET=ppc64le
# - TARGET=s390x
matrix:
fast_finish: true
# include:
# - os: windows
# env: TARGET=amd64
# go: 1.10.x
# - os: windows
# env: TARGET=amd64
# go: 1.11.x
before_install:
- sudo apt-get update -qq
- go get github.com/golang/dep/...
install:
- go get -u golang.org/x/lint/golint
- go get github.com/onsi/ginkgo/ginkgo
#before_script:
# - golint ./cmd/route-override/... | xargs -r false #done at ./test_linux.sh
script:
- |
if [ "${TARGET}" == "amd64" ]; then
GOARCH="${TARGET}" ./test_${TRAVIS_OS_NAME}.sh
docker build -t nfvpe/cni-route-override .
else
GOARCH="${TARGET}" ./build_linux.sh
fi
deploy:
# Release on versioned tag (e.g. v1.0)
- provider: script
#skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
all_branches: true
condition:
- "$TRAVIS_TAG =~ ^v[0-9].*$"
- "$TARGET = amd64"
# Push images to Dockerhub on merge to master
- provider: script
on:
branch: master
condition:
- "$TARGET = amd64"
script: >
bash -c '
docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS";
docker push nfvpe/cni-route-override:latest;
echo done'
notifications:
email: false
git:
depth: 9999999