forked from vmware-tanzu/velero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 863 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
dist: xenial
language: go
go:
- 1.12.x
sudo: required
services:
- docker
script:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$TRAVIS_PULL_REQUEST, BRANCH=$BRANCH"
- hack/ci-check.sh
# gcloud sdk is needed to upload docker images, but we want an updated version
# Do this outside our script so that it's clearly separated in the logs
before_deploy:
- sudo apt-get remove google-cloud-sdk
- if [ ! -d ${HOME}/google-cloud-sdk ]; then curl https://sdk.cloud.google.com | bash
/dev/stdin --disable-prompts; fi
- export PATH=${HOME}/google-cloud-sdk/bin:$PATH && echo "$PATH"
deploy:
- provider: script
skip_cleanup: true
script: hack/gcr-push.sh
on:
repo: heptio/velero
all_branches: true