TeaWeb/.travis.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

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