forked from lowsky/spotify-graphql-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (36 loc) · 916 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
44
45
# Use Dockerized infrastructure
sudo: false
# Use node_js environnement
language: node_js
node_js:
- "stable"
# Cache Gcloud SDK between commands
cache:
directories:
- "$HOME/google-cloud-sdk/"
# Install services
services:
- docker
# Set env vars
env:
global:
- GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud-service-key.json
- NODE_ENV=CI
install:
- npm install
script:
- npm test
env:
global:
# Do not prompt for user input when using any SDK methods.
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_deploy:
# redirect to /dev/null, see https://github.com/m-lab/travis/pull/21
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; curl https://sdk.cloud.google.com | bash > /dev/null; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
deploy:
- provider: script
script: bash ./deploy.sh
skip_cleanup: true
on:
branch: master