-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
20 lines (20 loc) · 991 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
branches:
only:
- master
cache:
directories:
- "$HOME/google-cloud-sdk/"
before_install:
# Make sure stdout is in blocking mode. Otherwise builds will fail due to large writes to stdout
# See: https://github.com/travis-ci/travis-ci/issues/4704. If this gets fixed, this line can be removed.
- python3 -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
- openssl aes-256-cbc -K $encrypted_866c48c033f1_key -iv $encrypted_866c48c033f1_iv
-in credentials.tar.gz.enc -out credentials.tar.gz -d
- gcloud version || true
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export
CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- tar -xzf credentials.tar.gz
- gcloud auth activate-service-account --key-file client-secret.json
script:
- gsutil rsync -d -r files gs://io-osf-staging-static