2020-04-08 12:46:13 +02:00
|
|
|
sudo: required
|
2019-05-20 20:09:49 +02:00
|
|
|
dist: trusty
|
|
|
|
|
2020-04-03 00:06:58 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "12"
|
|
|
|
|
2019-05-20 20:09:49 +02:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
before_install:
|
2020-04-03 00:06:58 +02: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
|
2020-04-03 00:28:09 +02:00
|
|
|
- chmod +x ./scripts/travis.sh
|
|
|
|
- chmod +x ./scripts/travis_deploy.sh
|
2020-04-09 17:36:12 +02:00
|
|
|
- chmod +x ./scripts/travis_deploy_dev_server.sh
|
|
|
|
- chmod +x ./scripts/travis_deploy_github.sh
|
2019-05-20 20:09:49 +02:00
|
|
|
|
2020-04-09 17:36:12 +02:00
|
|
|
stages:
|
|
|
|
- compile
|
|
|
|
# - test We've no tested defined yet
|
|
|
|
- name: deploy-develop
|
|
|
|
if: branch = develop
|
|
|
|
- name: deploy-release
|
|
|
|
if: branch = master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: compile
|
|
|
|
script: "./scripts/travis.sh --enable-release --enable-debug || travis_terminate 1;"
|
|
|
|
- stage: deploy-develop
|
|
|
|
script: "./scripts/travis_deploy_dev_server.sh || travis_terminate 1;"
|
|
|
|
- stage: deploy-release
|
|
|
|
script: "./scripts/travis_deploy_github.sh || travis_terminate 1;"
|