From 1bffbb09082cb399f4eb19d85f5d8fcb767a4498 Mon Sep 17 00:00:00 2001 From: Leith Bade Date: Wed, 3 Dec 2014 19:46:35 +1100 Subject: [PATCH] Use TESTMUNK in travis to start Testmunk --- .travis.yml | 20 ++++++++++---------- scripts/travis_script.sh | 11 +++++++---- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd43772a8..bdb2cfd20 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,11 @@ matrix: - os: linux include: - os: linux - env: BUILDTYPE=Release JOBS=16 MASON_PLATFORM=android + env: BUILDTYPE=Release JOBS=16 MASON_PLATFORM=android TESTMUNK=yes + compiler: clang + - os: linux + env: BUILDTYPE=Debug JOBS=16 MASON_PLATFORM=android TESTMUNK=no compiler: clang -# - os: linux -# env: BUILDTYPE=Debug JOBS=16 MASON_PLATFORM=android -# compiler: clang - os: linux env: BUILDTYPE=Release JOBS=16 compiler: clang @@ -22,12 +22,12 @@ matrix: - os: linux env: BUILDTYPE=Debug JOBS=8 compiler: gcc -# - os: osx -# env: BUILDTYPE=Release JOBS=8 MASON_PLATFORM=android -# compiler: clang -# - os: osx -# env: BUILDTYPE=Debug JOBS=8 MASON_PLATFORM=android -# compiler: clang + - os: osx + env: BUILDTYPE=Release JOBS=8 MASON_PLATFORM=android TESTMUNK=no + compiler: clang + - os: osx + env: BUILDTYPE=Debug JOBS=8 MASON_PLATFORM=android TESTMUNK=no + compiler: clang - os: osx env: BUILDTYPE=Release JOBS=8 compiler: clang diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh index 316d12401..6fc9edd92 100755 --- a/scripts/travis_script.sh +++ b/scripts/travis_script.sh @@ -9,10 +9,13 @@ git submodule update --init styles if [[ $MASON_PLATFORM == "android" ]]; then mapbox_time "compile_program" \ make android -j$JOBS BUILDTYPE=${BUILDTYPE} - - mapbox_time_start "upload_testmunk" - (cd ./android/test/ && ./upload_testmunk.sh ../java/app/build/outputs/apk/app-debug.apk) - mapbox_time_finish + + if [[ $TESTMUNK == "yes" ]]; then + mapbox_time_start "upload_testmunk" + (cd ./android/test/ && ./upload_testmunk.sh ../java/app/build/outputs/apk/app-debug.apk) + mapbox_time_finish + fi + elif [[ ${TRAVIS_OS_NAME} == "linux" ]]; then # # build & test Linux