forked from processing/p5.js-web-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (43 loc) · 1.13 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
48
49
50
sudo: required
language: node_js
node_js:
- "12.16.1"
cache:
directories:
- "$HOME/google-cloud-sdk/"
services:
- docker
before_install:
- docker-compose -f docker-compose-development.yml up -d
- docker ps -a
install: true
jobs:
include:
- stage: test
name: "Linting"
script: docker-compose exec -T app npm run lint
- # stage name not required, will continue to use `test`
name: "Tests"
script: docker-compose exec -T app npm run test
before_deploy:
- docker-compose stop
- 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 --quiet version
- gcloud --quiet components update
- gcloud --quiet components update kubectl
deploy:
- provider: script
script: ./deploy.sh
skip_cleanup: true
on:
branch: release
tags: true
- provider: script
script: ./deploy_staging.sh
skip_cleanup: true
on:
branch: develop
env:
global:
- APP_IMAGE_NAME=p5js-web-editor_app