forked from html5rocks/www.html5rocks.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 1.35 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
sudo: false
language: ruby
rvm:
- 2.2
env:
global:
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
- CLOUDSDK_PYTHON_SITEPACKAGES=1
- PROJECT_ID=html5rocks-hrd
- SRV_ACCOUNT=99453920800-hal1n7nprda09r5vcqbbk792tjtssl1e@developer.gserviceaccount.com
script:
- echo "script"
before_install:
- openssl aes-256-cbc -K $encrypted_33a11b23443e_key -iv $encrypted_33a11b23443e_iv -in html5rocks-hrd.json.enc -out html5rocks-hrd.json -d
- curl https://sdk.cloud.google.com | bash
- $HOME/google-cloud-sdk/bin/gcloud components update app -q
- $HOME/google-cloud-sdk/bin/gcloud auth activate-service-account $SRV_ACCOUNT --key-file $PROJECT_ID.json
- $HOME/google-cloud-sdk/bin/gcloud config set project $PROJECT_ID
- $HOME/google-cloud-sdk/bin/gcloud config set app/promote_by_default false
- $HOME/google-cloud-sdk/bin/gcloud config set app/use_appengine_api true
# - $HOME/google-cloud-sdk/bin/gcloud preview app modules cancel-deployment default --version $TRAVIS_BRANCH
- $HOME/google-cloud-sdk/bin/gcloud app deploy --version $TRAVIS_BRANCH --bucket gs://${TRAVIS_BRANCH}-html5rocks-hrd-appspot-com ./app.yaml
#after_success:
# - $HOME/google-cloud-sdk/bin/gcloud preview app deploy --version $TRAVIS_BRANCH --bucket gs://${TRAVIS_BRANCH}-html5rocks-hrd-appspot-com ./app.yaml
# branch whitelist
branches:
only:
- master # test the master branch
- live