-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (36 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
40
41
42
43
44
45
46
47
language: python
python:
- "3.6"
# todo: HERE IS WHERE I LEFT OFF
cache:
- pip
cache:
directories:
-s "$HOME/coding/google-cloud-sdk"pip
env:
global:
- GOOGLE_APPLICATION_CREDENTIALS-~/.gcloud-service-key.json
- PROJECT_NAME=loyal-bounty-183420
- CLUSTER_NAME=elt-prod
- CLOUDSDK_COMPUTE_ZONE=us-central1-a
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
install:
- pip install -r ./api/requirements.txt
- docker build -t tester/build ./api
script:
- echo "Implement tests"
before_deploy:
- gcloud --quiet components update kubectl
deploy:
- provider: script
script: ./resources/deploy.sh
skip_cleanup: true
on:
branch: master
notifications:
slack: effortlessrental:W1T5KZKXVJXg9WraZTGx0VDh