From 897d2c0b757dc906b9d69d5759b69b051fa47a1f Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 12 Sep 2015 02:34:14 +0200 Subject: [PATCH] Enhance travis run script --- tools/travis-ci/run.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/travis-ci/run.sh b/tools/travis-ci/run.sh index a1396cfe..d95475e5 100755 --- a/tools/travis-ci/run.sh +++ b/tools/travis-ci/run.sh @@ -10,12 +10,15 @@ set -o pipefail ## Fail on error in pipe # Set-up some variables OPJ_SOURCE_DIR=$(cd $(dirname $0)/../.. && pwd) -if [ "${TRAVIS_REPO_SLUG:-}" == "uclouvain/openjpeg" ]; then - OPJ_SITE="travis-ci.org" - OPJ_DO_SUBMIT=1 +OPJ_DO_SUBMIT=0 # Do not flood cdash +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 + fi else OPJ_SITE="$(hostname)" - OPJ_DO_SUBMIT=0 # Do not flood cdash fi if [ "${TRAVIS_OS_NAME:-}" == "" ]; then