forked from yuangu/sxtwl_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (67 loc) · 1.94 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
matrix:
include:
#IOS
- os: osx
language: cpp
env: BUILD_TARGET=Ios
sudo: true
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.cmake
-DIOS_PLATFORM=OS
-DCMAKE_BUILD_TYPE=Release
- cmake --build .
#Android
- os: linux
language: cpp
env: BUILD_TARGET=Android
sudo: true
script:
- wget https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip
- unzip -q ./android-ndk-r14b-linux-x86_64.zip
- export ANDROID_NDK_ROOT=`pwd`/android-ndk-r14b
- export ANDROID_NDK=`pwd`/android-ndk-r14b
- wget https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.tar.gz
- tar -xf ./cmake-3.12.0-Linux-x86_64.tar.gz
- export PATH=`pwd`/cmake-3.12.0-Linux-x86_64/bin:$PATH
- echo $ANDROID_NDK
- which cmake
- mkdir build
- cd build
- cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/android.cmake
-DCMAKE_BUILD_TYPE=Release
-DANDROID_ABI=armeabi-v7a
-DANDROID_STL=gnustl_static
-DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.9
-DCMAKE_MAKE_PROGRAM=$ANDROID_NDK/prebuilt/linux-x86_64/bin/make
-DANDROID_NATIVE_API_LEVEL=21
-DSXTWL_BUILD_EXAMPLES=1
-G "Unix Makefiles"
- cmake --build .
# linux
- os: linux
language: cpp
env: BUILD_TARGET=Linux
compiler:
- clang
- gcc
script:
- mkdir build
- cd build
- cmake .. -DSXTWL_BUILD_EXAMPLES=1
- cmake --build .
- ./example/example
#mac
- os: osx
language: cpp
env: BUILD_TARGET=Mac
compiler:
- clang
- gcc
script:
- mkdir build
- cd build
- cmake .. -DSXTWL_BUILD_EXAMPLES=1
- cmake --build .
- ./example/example