tusd/.travis.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2015-02-01 14:02:52 +00:00
language: go
go:
2015-12-26 21:36:38 +00:00
- 1.5
- 1.6
2016-08-26 14:30:40 +00:00
- 1.7
- 1.8
2017-08-26 14:32:03 +00:00
- 1.9
2018-05-13 12:31:50 +00:00
- "1.10"
2019-01-14 15:19:11 +00:00
- 1.11
sudo: required
addons:
apt:
packages:
- docker-ce
cache:
apt: true
directories:
- $HOME/.gimme
- "$HOME/google-cloud-sdk/"
2015-12-26 21:36:38 +00:00
env:
global:
- GO15VENDOREXPERIMENT=1
2016-01-08 18:23:59 +00:00
install:
- true
2015-02-01 14:02:52 +00:00
script:
2016-09-29 22:46:05 +00:00
- ./.scripts/test_all.sh
before_deploy:
- if [[ "$TRAVIS_TAG" != "" ]]; then ./.scripts/build_all.sh; fi
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; curl https://sdk.cloud.google.com | bash; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud --quiet version
- gcloud --quiet components update
- gcloud --quiet components update kubectl
- curl https://raw.githubusercontent.com/kubernetes/helm/9476fcc10aaaf4bbcbeb6b7b9e62e9f03d312697/scripts/get | bash
2015-08-19 16:08:15 +00:00
deploy:
- provider: releases
2015-08-19 16:08:15 +00:00
api_key:
secure: dV3wr9ebEps3YrzIoqmkYc7fw0IECz7QLPRENPSxTJyd5TTYXGsnTS26cMe2LdGwYrXw0njt2GGovMyBZFTtxyYI3mMO4AZRwvZfx/yGzPWJBbVi6NjZVRg/bpyK+mQJ5BUlkPAYJmRpdc6qD+nvCGakBOxoByC5XDK+yM+bKFs=
file_glob: true
file: tusd_*.*
2015-08-19 16:08:15 +00:00
skip_cleanup: true
on:
tags: true
go: 1.8
2015-08-19 16:08:15 +00:00
repo: tus/tusd
- provider: script
script: .scripts/deploy_gcloud.sh
on:
2018-01-04 16:36:10 +00:00
branch: master
go: 1.8
repo: tus/tusd