summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-09-12 02:34:14 +0200
committermayeut <mayeut@users.noreply.github.com>2015-09-12 02:34:14 +0200
commit897d2c0b757dc906b9d69d5759b69b051fa47a1f (patch)
treec49be3a59876cb8185cfb57acd3acde2a90160dd
parent8d46ac19ff34bd1ac1c23cf2acba0951c1c69459 (diff)
Enhance travis run script
-rwxr-xr-xtools/travis-ci/run.sh11
1 files 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