-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (29 loc) · 1.37 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
25
26
27
28
29
30
31
32
33
34
35
36
language: python
# https://cloud.google.com/storage/docs/gsutil_install#alt-install
python:
- "2.7"
# https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
install: true
branches:
only:
- master
before_install:
- export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
- echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- sudo apt-get update && sudo apt-get install -y google-cloud-sdk
# https://github.com/travis-ci/travis-ci/issues/7940#issuecomment-310759657
- sudo rm -f /etc/boto.cfg
- gcloud --version
before_script:
- openssl aes-256-cbc -K $encrypted_ad2dd71ccaf7_key -iv $encrypted_ad2dd71ccaf7_iv -in travis-cigrowbit-52554fcb00cd.json.enc -out travis-cigrowbit-52554fcb00cd.json -d
- gcloud auth activate-service-account "travis-ci@growbit-0.iam.gserviceaccount.com" --key-file=travis-cigrowbit-52554fcb00cd.json
- gcloud config set project growbit-0
script:
- cd html5up-stellar
- gsutil -m -h "Cache-Control:public, max-age=3600" cp -Z -R . gs://www.growbit.xyz/
- gcloud --verbosity debug compute url-maps invalidate-cdn-cache growingabit-io --path "/*" --host www.growbit.xyz
notifications:
email:
on_failure: change
on_success: change