-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
24 lines (24 loc) · 1.05 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
language: go
go:
- tip
branches:
only:
- master
env:
global:
# - AWS_ACCESS_KEY_ID=" should be declared on Travis console "
# - AWS_SECRET_ACCESS_KEY=" should be declared on Travis console "
- PATH: ${PATH}:${TRAVIS_BUILD_DIR}/google-cloud-sdk/bin
install:
- go get -t ./...
- go install .
# Install docker-machine
- curl -L https://github.com/docker/machine/releases/download/v0.13.0/docker-machine-`uname -s`-`uname -m` > /home/travis/bin/docker-machine && chmod a+x /home/travis/bin/docker-machine
# Install Google Cloud SDK CLI
- sudo apt-get install python
- wget --quiet https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-187.0.0-linux-x86_64.tar.gz && tar xzvf google-cloud-sdk-187.0.0-linux-x86_64.tar.gz
- yes | ${TRAVIS_BUILD_DIR}/google-cloud-sdk/install.sh
- echo ${ENCODED_GCP_KEY_FILE} | base64 -d > ${HOME}/.config/gcloud/application_default_credentials.json
- gcloud auth activate-service-account --key-file ${HOME}/.config/gcloud/application_default_credentials.json
script:
- ./test/run.sh