forked from BellerophonMobile/xmp3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
16 lines (16 loc) · 916 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
language: c
compiler:
- gcc
- clang
#matrix:
# include:
# - compiler: gcc
# env: ANDROID_TOOLCHAIN=$HOME/toolchains/arm
before_install:
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get update -qq; fi
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get install -qq libexpat1-dev libssl-dev libev-dev uuid-dev; fi
- if [ -n "$ANDROID_TOOLCHAIN" ]; then curl http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86.tar.bz2 | tar xjf -; fi
- if [ -n "$ANDROID_TOOLCHAIN" ]; then mv android-ndk-r8e android-ndk; fi
- if [ -n "$ANDROID_TOOLCHAIN" ]; then android-ndk/build/tools/make-standalone-toolchain.sh --platform=android-9 --toolchain=arm-linux-androideabi-4.6 --arch=arm --system=linux-x86 --install-dir=$ANDROID_TOOLCHAIN --ndk-dir=`pwd`/android-ndk; fi
script:
- if [ -n "$ANDROID_TOOLCHAIN" ]; then ./build_android.sh; else ./waf configure build test; fi