This repository was archived by the owner on Jun 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
51 lines (45 loc) · 1.79 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: c++
os:
- osx
- linux
install:
- 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip;
unzip -q android-ndk-r14b-linux-x86_64.zip;
android-ndk-r14b/build/tools/make_standalone_toolchain.py --arch arm --api 14 --stl libc++ --install-dir toolchain/tc-arm;
android-ndk-r14b/build/tools/make_standalone_toolchain.py --arch arm64 --api 21 --stl libc++ --install-dir toolchain/tc-arm64;
android-ndk-r14b/build/tools/make_standalone_toolchain.py --arch x86 --api 14 --stl libc++ --install-dir toolchain/tc-x86;
export ANDROID_TOOLCHAIN_PATH_ARM=`pwd`/toolchain/tc-arm;
export ANDROID_TOOLCHAIN_PATH_ARM64=`pwd`/toolchain/tc-arm64;
export ANDROID_TOOLCHAIN_PATH_X86=`pwd`/toolchain/tc-x86;
fi'
env:
- TARGET_OS=ios TARGET_CPU=arm
- TARGET_OS=ios TARGET_CPU=arm64
- TARGET_OS=ios TARGET_CPU=x86
- TARGET_OS=ios TARGET_CPU=x64
- TARGET_OS=android TARGET_CPU=arm
- TARGET_OS=android TARGET_CPU=arm64
- TARGET_OS=android TARGET_CPU=x86
matrix:
exclude:
# No iOS build on Linux
- os: linux
env: TARGET_OS=ios TARGET_CPU=arm
- os: linux
env: TARGET_OS=ios TARGET_CPU=arm64
- os: linux
env: TARGET_OS=ios TARGET_CPU=x86
- os: linux
env: TARGET_OS=ios TARGET_CPU=x64
# No Android builds on OSX
- os: osx
env: TARGET_OS=android TARGET_CPU=arm
- os: osx
env: TARGET_OS=android TARGET_CPU=arm64
- os: osx
env: TARGET_OS=android TARGET_CPU=x86
script:
- make OUTDIR=out/$TARGET_OS/$TARGET_CPU -j5
- if [[ "$TARGET_OS" == "ios" ]]; then file out/$TARGET_OS/$TARGET_CPU/libZeroKitClientNative.a; fi
- if [[ "$TARGET_OS" == "android" ]]; then file out/$TARGET_OS/$TARGET_CPU/libZeroKitClientNative.so; fi