Use TESTMUNK in travis to start Testmunk

This commit is contained in:
Leith Bade
2014-12-03 19:46:35 +11:00
parent 21460f0c6a
commit 1bffbb0908
2 changed files with 17 additions and 14 deletions

View File

@@ -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

View File

@@ -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