Enhance travis run script

This commit is contained in:
mayeut 2015-09-12 02:34:14 +02:00
parent 8d46ac19ff
commit 897d2c0b75
1 changed files with 7 additions and 4 deletions

View File

@ -10,12 +10,15 @@ set -o pipefail ## Fail on error in pipe
# Set-up some variables # Set-up some variables
OPJ_SOURCE_DIR=$(cd $(dirname $0)/../.. && pwd) OPJ_SOURCE_DIR=$(cd $(dirname $0)/../.. && pwd)
if [ "${TRAVIS_REPO_SLUG:-}" == "uclouvain/openjpeg" ]; then OPJ_DO_SUBMIT=0 # Do not flood cdash
OPJ_SITE="travis-ci.org" if [ "${TRAVIS_REPO_SLUG:-}" != "" ]; then
OPJ_OWNER=$(echo "${TRAVIS_REPO_SLUG}" | sed 's/\(^.*\)\/.*/\1/')
OPJ_SITE="${OPJ_OWNER}.travis-ci.org"
if [ "${OPJ_OWNER}" == "uclouvain" ]; then
OPJ_DO_SUBMIT=1 OPJ_DO_SUBMIT=1
fi
else else
OPJ_SITE="$(hostname)" OPJ_SITE="$(hostname)"
OPJ_DO_SUBMIT=0 # Do not flood cdash
fi fi
if [ "${TRAVIS_OS_NAME:-}" == "" ]; then if [ "${TRAVIS_OS_NAME:-}" == "" ]; then