-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
39 lines (37 loc) · 1.03 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
37
38
39
language: python
python:
- '3.6'
cache:
directories:
- "$HOME/google-cloud-sdk"
env:
global:
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
- PROJECT_NAME=supple-bank-232805
- CLUSTER_NAME=big-data-trends-sentiment-cluster
- CLOUDSDK_COMPUTE_ZONE=us-central1-c
before_install:
- 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
- gcloud --quiet version
- gcloud --quiet components update
- gcloud --quiet components update beta
- gcloud --quiet components update kubectl
- echo $super_secret_password | gpg --passphrase-fd 0 My-project-key.json.gpg
- echo $super_secret_password | gpg --passphrase-fd 0 ./config/conf.py.gpg
install:
- pip install -r ./requirements.txt
- docker
script:
- echo "success installing."
- pwd
- ls -l
before_deploy:
- gcloud --quiet components update kubectl
deploy:
- provider: script
script: bash ./deploy.sh
skip_cleanup: true
on:
branch: master