-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/ci: build for Android on Travis CI.
- Loading branch information
Showing
2 changed files
with
55 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
git submodule update --init | ||
|
||
# Build native corrade-rc | ||
mkdir build && cd build | ||
cmake .. \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/deps-native \ | ||
-DCMAKE_INSTALL_RPATH=$HOME/deps-native/lib \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DWITH_INTERCONNECT=OFF \ | ||
-DWITH_PLUGINMANAGER=OFF \ | ||
-DWITH_TESTSUITE=OFF | ||
make -j install | ||
cd .. | ||
|
||
# Crosscompile | ||
mkdir build-android-arm && cd build-android-arm | ||
ANDROID_NDK=$TRAVIS_BUILD_DIR/android-ndk-r10e cmake .. \ | ||
-DCMAKE_TOOLCHAIN_FILE=../toolchains/generic/Android-ARM.cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCORRADE_RC_EXECUTABLE=$HOME/deps-native/bin/corrade-rc \ | ||
-DBUILD_TESTS=ON | ||
make -j | ||
|
||
# Start simulator and run tests | ||
echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a | ||
emulator -avd test -no-audio -no-window & | ||
android-wait-for-emulator | ||
CORRADE_TEST_COLOR=ON ctest -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters