Updated the travis yml

canary
WolverinDEV 2020-04-03 00:06:58 +02:00
parent 41eac54c70
commit 6ad80c6f6a
1 changed files with 8 additions and 5 deletions

View File

@ -1,19 +1,22 @@
sudo: true
dist: trusty
language: node_js
node_js:
- "12"
services:
- docker
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker pull $DOCKER_USERNAME/teaweb:build_new
# 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
jobs:
include:
- stage: "build"
name: TeaWeb build master branch
script:
- "mkdir -p /tmp/build"
- "docker run --rm -v /tmp/build/logs/:/build/logs/ -v /tmp/build/packages/:/build/packages/ -v `pwd`:/build/TeaWeb $DOCKER_USERNAME/teaweb:build_new --enable-release --enable-debug || travis_terminate 1;"
- "./scripts/travis_deploy.sh || travis_terminate 1;"
- "./scripts/travis.sh --enable-release --enable-debug || travis_terminate 1;"
# - "./scripts/travis_deploy.sh || travis_terminate 1;"
if: branch = master