2019-05-20 18:09:49 +00:00
|
|
|
dist: trusty
|
|
|
|
|
2020-04-02 22:06:58 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2021-04-26 11:51:40 +00:00
|
|
|
- "15"
|
2020-04-02 22:06:58 +00:00
|
|
|
|
2019-05-20 18:09:49 +00:00
|
|
|
before_install:
|
2021-05-22 11:37:33 +00:00
|
|
|
# - sudo apt-get update
|
|
|
|
# - sudo apt-get -y install realpath
|
2020-05-03 19:01:30 +00:00
|
|
|
- chmod +x ./scripts/travis/build.sh
|
2020-08-05 17:23:06 +00:00
|
|
|
- chmod +x ./scripts/travis/deploy_server.sh
|
2020-05-03 19:01:30 +00:00
|
|
|
- chmod +x ./scripts/travis/deploy_github.sh
|
2020-05-03 20:02:18 +00:00
|
|
|
- chmod +x ./scripts/travis/deploy_docker.sh
|
2019-05-20 18:09:49 +00:00
|
|
|
|
2020-04-09 15:36:12 +00:00
|
|
|
stages:
|
|
|
|
- compile
|
|
|
|
# - test We've no tested defined yet
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: compile
|
2020-08-20 21:43:35 +00:00
|
|
|
script: "./scripts/travis/build.sh --enable-release --enable-debug || travis_terminate 1;"
|
2020-04-09 15:51:24 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: script
|
2020-08-05 17:20:40 +00:00
|
|
|
script: "bash scripts/travis/deploy_server.sh development"
|
|
|
|
cleanup: false
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: develop
|
2021-01-08 21:10:37 +00:00
|
|
|
# - provider: script
|
|
|
|
# cleanup: false
|
|
|
|
# skip_cleanup: true
|
2021-03-24 17:41:25 +00:00
|
|
|
# script: "bash scripts/travis/deploy_docker.sh development"
|
2021-01-08 21:10:37 +00:00
|
|
|
# on:
|
|
|
|
# branch: develop
|
2020-05-03 20:02:18 +00:00
|
|
|
- provider: script
|
2021-03-24 17:41:25 +00:00
|
|
|
script: "bash scripts/travis/deploy_server.sh production"
|
2020-05-03 20:02:18 +00:00
|
|
|
cleanup: false
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2020-08-05 17:44:37 +00:00
|
|
|
branch: master
|
2020-04-09 15:51:24 +00:00
|
|
|
- provider: script
|
2020-04-09 15:58:02 +00:00
|
|
|
cleanup: false
|
2020-04-09 16:04:06 +00:00
|
|
|
skip_cleanup: true
|
2021-03-24 17:41:25 +00:00
|
|
|
script: "bash scripts/travis/deploy_github.sh"
|
2020-05-03 20:02:18 +00:00
|
|
|
on:
|
|
|
|
branch: master
|
2021-01-08 21:10:37 +00:00
|
|
|
# - provider: script
|
|
|
|
# cleanup: false
|
|
|
|
# skip_cleanup: true
|
|
|
|
# script: "bash scripts/travis/deploy_docker.sh release"
|
|
|
|
# on:
|
|
|
|
# branch: master
|