2018-06-20 04:22:35 +02:00
|
|
|
sudo: required
|
2017-10-16 05:35:58 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2020-02-25 23:14:50 +01:00
|
|
|
- "12.16.1"
|
2018-06-20 00:22:18 +02:00
|
|
|
|
2018-08-27 23:30:34 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- "$HOME/google-cloud-sdk/"
|
|
|
|
|
2018-06-20 00:22:18 +02:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2018-08-27 23:30:34 +02:00
|
|
|
before_install:
|
|
|
|
- docker-compose -f docker-compose-development.yml up -d
|
|
|
|
- docker ps -a
|
|
|
|
|
|
|
|
install: true
|
|
|
|
|
2019-05-24 18:16:15 +02:00
|
|
|
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
|
2018-08-27 23:30:34 +02:00
|
|
|
|
|
|
|
before_deploy:
|
2018-08-28 00:01:30 +02:00
|
|
|
- docker-compose stop
|
2018-08-28 00:41:36 +02:00
|
|
|
- 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
|
2018-08-27 23:30:34 +02:00
|
|
|
- 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 23:38:59 +02:00
|
|
|
- provider: script
|
2018-08-27 23:59:09 +02:00
|
|
|
script: ./deploy.sh
|
2018-08-27 23:38:59 +02:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2020-05-21 23:00:27 +02:00
|
|
|
branch: release
|
2020-05-21 23:43:58 +02:00
|
|
|
tags: true
|
2019-05-29 22:11:26 +02:00
|
|
|
- provider: script
|
2019-05-30 20:05:45 +02:00
|
|
|
script: ./deploy_staging.sh
|
2019-05-29 22:11:26 +02:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2020-05-21 23:00:27 +02:00
|
|
|
branch: develop
|
2018-08-27 23:30:34 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2019-10-09 00:14:19 +02:00
|
|
|
- APP_IMAGE_NAME=p5js-web-editor_app
|