-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (29 loc) · 865 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
services:
- docker
language: go
go:
- 1.10.8
branches:
only:
- master
- /^bzub-.*$/
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
- /^PR\d*$/
env:
global:
- REPO=cloudnativelabs/kube-router
- REPO_PATH=$HOME/gopath/src/github.com/$REPO
- GIT_BRANCH=$TRAVIS_BRANCH
script:
- build/travis-test.sh
# All successfully built commits get an image placed in the kube-router-git
# image repo and tagged with the commit hash.
- wget https://github.com/estesp/manifest-tool/releases/download/v1.0.0-rc2/manifest-tool-linux-amd64 -O manifest-tool && chmod +x manifest-tool
- build/travis-deploy.sh
# This fixes issues when a contributor uses their own Travis CI account to test
# code/CI changes.
before_install:
- mkdir -p $REPO_PATH
- rsync -az ${TRAVIS_BUILD_DIR}/ $REPO_PATH
- export TRAVIS_BUILD_DIR=$REPO_PATH
- cd $REPO_PATH