-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (34 loc) · 1005 Bytes
/
.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
sudo: required
language: go
cache:
directories:
-s "$HOME/coding/google-cloud-sdk"
#services:
# - docker
env:
global:
- GOOGLE_APPLICATION_CREDENTIALS-~/.gcloud-service-key.json
- PROJECT_NAME=fifth-marker-132121
- CLUSTER_NAME=cluster-1
- CLOUDSDK_COMPUTE_ZONE=us-central1-f
- NODE_ENV=CI
- DATABASE=stage
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
- ./resources/glide-install.sh
install:
- sudo docker-compose -f docker-compose.seed.yml up --build -d
script:
- echo "skip tests"
before_deploy:
- gcloud --quiet components update kubectl
deploy:
- provider: script
script: ./resources/deploy.sh
skip_cleanup: true
on:
branch: master