-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
43 lines (33 loc) · 1.11 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
sudo: true
language: node_js
node_js:
- "lts/*"
- "10"
env:
# Make sure gcloud command is on our PATH and the App Engine SDK is in the Python path
- PATH=$PATH:${HOME}/google-cloud-sdk/bin CLOUDSDK_CORE_DISABLE_PROMPTS=1
branches:
only:
- master
before_install:
- echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
- sudo apt-get update -y
- sudo apt-get install apt-transport-https ca-certificates -y
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
- sudo apt-get install google-cloud-sdk -y --allow-unauthenticated
- sudo apt-get install google-cloud-sdk-datastore-emulator -y --allow-unauthenticated
services:
- redis
install: yarn install
before_script:
- (gcloud beta emulators datastore start --consistency=1.0 --no-store-on-disk & DATASTORE_PID=$!)
- sleep 5
script:
- yarn test
- yarn build
after_success:
- yarn coveralls
after_script:
- kill -9 $DATASTORE_PID
cache:
yarn: true