Updated the travis script to success on all branches and not only on the master one

canary
WolverinDEV 2020-04-08 12:46:13 +02:00
parent 9274666ba9
commit e3bca3fb8d
2 changed files with 3 additions and 10 deletions

View File

@ -1,4 +1,4 @@
sudo: true
sudo: required
dist: trusty
language: node_js
@ -8,19 +8,12 @@ node_js:
services:
- docker
sudo: required
before_install:
# 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.sh
- chmod +x ./scripts/travis_deploy.sh
branches:
only:
- master
- develop
script:
- "./scripts/travis.sh --enable-release --enable-debug || travis_terminate 1;"
- "./scripts/travis_deploy.sh || travis_terminate 1;"

View File

@ -4,8 +4,8 @@ PACKAGES_DIRECTORY="auto-build/packages/"
LOG_FILE="auto-build/logs/build.log"
if [[ -z "${GIT_AUTHTOKEN}" ]]; then
echo "Missing environment variable GIT_AUTHTOKEN. Please set it before usign this script!"
exit 1
echo "GIT_AUTHTOKEN isn't set. Don't deploying build!"
exit 0
fi
GIT_COMMIT_SHORT=$(git rev-parse --short HEAD)