-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (34 loc) · 856 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
sudo: false
language: node_js
node_js:
- "node"
cache:
directories:
- "$HOME/google-cloud-sdk/"
services:
- docker
before_install:
- npm install
- npm install ava
env:
global:
- PROJECT_PROD=mev-gallery
- CLUSTER=mev-claster
- ZONE=us-central1-a
- NODE_IMAGE=gallery
- NODE_DEPLOYMENT=node-deploy
- NODE_CONTAINER=node-container
script:
- npm run test
- npm run lint
before_deploy:
- 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 > /dev/null; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud components update kubectl
- gcloud version
deploy:
- provider: script
script: chmod +x ./deploy-prod.sh && ./deploy-prod.sh
skip_cleanup: true
on:
branch: master