-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (31 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
25
26
27
28
29
30
31
sudo: false
language: python
python:
- '2.7'
cache:
directories:
- "$HOME/gcloud/"
env:
global:
- PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/client-secret.json
branches:
only:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_a944f0c38d5e_key -iv $encrypted_a944f0c38d5e_iv
-in client-secret.json.enc -out client-secret.json -d
- if [ ! -d $HOME/gcloud/google-cloud-sdk ]; then mkdir -p $HOME/gcloud && wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
--directory-prefix=$HOME/gcloud && cd $HOME/gcloud && tar xzf google-cloud-sdk.tar.gz
&& printf '\ny\n\ny\ny\n' | ./google-cloud-sdk/install.sh && cd $TRAVIS_BUILD_DIR;
fi
- gcloud -q components update
- gcloud -q auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
- gcloud config set project timetrackerateam
install:
- echo "Instalando"
before_script:
- echo "Before script"
script:
- echo "Script"
after_success:
- gcloud -q app deploy appEngine/app.yaml appEngine/index.yaml appEngine/cron.yaml