diff options
author | Marcel Metz <[email protected]> | 2017-03-05 20:35:02 +0100 |
---|---|---|
committer | Marcel Metz <[email protected]> | 2017-03-06 10:24:26 +0100 |
commit | 1d208c49b51a25f617026b7444f03f1cd4599ee6 (patch) | |
tree | 8a00c1d3aef3b5fd21b0aeb69721ce792e6a4235 /.travis.yml | |
parent | adf6fee6d102f64bd2c74710a518b5f4ccbb7be3 (diff) |
Add Android cross-compile to TravisCI test matrix
The test entry adds the ability to test the OpenSLES backend.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index b0dff015..bc8e6fbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,11 +3,15 @@ matrix: include: - os: linux dist: trusty + - os: linux + dist: trusty + env: + - BUILD_ANDROID=true - os: osx sudo: required install: - > - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then + if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then # Install pulseaudio, portaudio, ALSA, JACK dependencies for # corresponding backends. # Install Qt5 dependency for alsoft-config. @@ -18,4 +22,25 @@ install: libjack-dev \ qtbase5-dev fi -script: cmake . && make -j2 + - > + if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then + curl -o ~/android-ndk.zip https://dl.google.com/android/repository/android-ndk-r14-linux-x86_64.zip + unzip -q ~/android-ndk.zip -d ~ + sed -i -e 's/VERSION 3.6.0/VERSION 3.2/' ~/android-ndk-r14/build/cmake/android.toolchain.cmake + fi +script: + - > + if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then + cmake . + fi + - > + if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then + cmake \ + -DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r14/build/cmake/android.toolchain.cmake \ + . + fi + - > + if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then + cmake . + fi + - make -j2 |