Prepare for android-gl-build
This commit is contained in:
@@ -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
10
android/scripts/common.sh
Normal 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
8
android/scripts/debug.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
export BUILDTYPE=Debug TESTMUNK=no
|
||||
|
||||
./common.sh $1
|
||||
8
android/scripts/release.sh
Normal file
8
android/scripts/release.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
export BUILDTYPE=Release TESTMUNK=yes
|
||||
|
||||
./common.sh $1
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user