TeaWeb/.travis.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

2019-05-20 18:09:49 +00:00
dist: trusty
2020-04-02 22:06:58 +00:00
language: node_js
node_js:
- "12"
2019-05-20 18:09:49 +00:00
services:
- docker
before_install:
2020-04-02 22:06:58 +00:00
# If ever run on windows make sure you don't run this in the git bash!
- docker run -dit --name emscripten -v "$(pwd)":"/src/" trzeci/emscripten:sdk-incoming-64bit bash
- chmod +x ./scripts/travis/build.sh
2020-08-05 17:23:06 +00: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 18:09:49 +00:00
stages:
- compile
# - test We've no tested defined yet
jobs:
include:
- stage: compile
script: "./scripts/travis/build.sh --enable-release --enable-debug --verbose || travis_terminate 1;"
2020-04-09 15:51:24 +00:00
deploy:
- provider: script
script: "bash scripts/travis/deploy_server.sh development"
cleanup: false
skip_cleanup: true
on:
branch: develop
- provider: script
2020-04-09 15:58:02 +00:00
cleanup: false
2020-04-09 16:04:06 +00:00
skip_cleanup: true
2020-08-05 17:44:37 +00:00
script: "bash scripts/travis/deploy_docker.sh development"
2020-04-09 15:51:24 +00:00
on:
branch: develop
- provider: script
2020-08-05 17:44:37 +00:00
script: "bash scripts/travis/deploy_server.sh production"
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
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"
2020-04-09 15:51:24 +00:00
on:
branch: master