Prepare for android-gl-build

This commit is contained in:
Leith Bade
2014-12-20 17:15:55 +13:00
parent c749d1a5ab
commit 3c968672d9
5 changed files with 29 additions and 3 deletions

View File

@@ -5,10 +5,10 @@ matrix:
- os: linux
include:
- os: linux
env: BUILDTYPE=Release JOBS=16 MASON_PLATFORM=android TESTMUNK=yes
env: BUILDTYPE=Release MASON_PLATFORM=android TESTMUNK=yes
compiler: clang
- os: linux
env: BUILDTYPE=Debug JOBS=16 MASON_PLATFORM=android TESTMUNK=no
env: BUILDTYPE=Debug MASON_PLATFORM=android TESTMUNK=no
compiler: clang
- os: linux
env: BUILDTYPE=Release JOBS=16

10
android/scripts/common.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
set -o pipefail
NAME=$1
export MASON_PLATFORM=android
make android -j$JOBS BUILDTYPE=${BUILDTYPE}

8
android/scripts/debug.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
set -o pipefail
export BUILDTYPE=Debug TESTMUNK=no
./common.sh $1

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
set -o pipefail
export BUILDTYPE=Release TESTMUNK=yes
./common.sh $1

View File

@@ -8,7 +8,7 @@ git submodule update --init styles
if [[ $MASON_PLATFORM == "android" ]]; then
mapbox_time "compile_program" \
make android -j$JOBS BUILDTYPE=${BUILDTYPE}
make android BUILDTYPE=${BUILDTYPE}
if [[ $TESTMUNK == "yes" ]]; then
mapbox_time_start "upload_testmunk"