p5.js-web-editor/.travis.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

sudo: required
2017-10-16 03:35:58 +00:00
language: node_js
node_js:
- "10.15.0"
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:
2018-08-27 22:01:30 +00:00
- 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:
2018-08-27 21:38:59 +00:00
- provider: script
script: ./deploy.sh
2018-08-27 21:38:59 +00:00
skip_cleanup: true
on:
branch: master
- provider: script
script: ./deploy_staging.sh
skip_cleanup: true
on:
branch: feature/public-api
env:
global:
- APP_IMAGE_NAME=p5jswebeditor_app