-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
91 lines (79 loc) · 2.35 KB
/
.travis.yml
File metadata and controls
91 lines (79 loc) · 2.35 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
language: android
jdk: oraclejdk7
android:
components:
- build-tools-21.0.1
- android-21
- extra
before_script:
- sudo apt-get update
- sudo apt-get install gcc-4.6 g++-4.6
- sudo apt-get install tree cmake gcc-4.6-arm-linux-gnueabi g++-4.6-arm-linux-gnueabi libc6-dev-i386 lib32stdc++6 g++-multilib g++-4.6-multilib
- sudo apt-get install binutils-mingw-w64-i686 binutils-mingw-w64-x86-64 binutils-mingw-w64 gcc-mingw-w64-i686 g++-mingw-w64-i686
- mkdir build
- cd build
# build for x86_64
- cmake -Dx86_64=ON ..
- make
- cp ./source/main/testkit-stub ../dest/x86_64/
- rm -rf *
# build for i386
- cmake -Di386=ON ..
- make
- cp ./source/main/testkit-stub ../dest/i386/
- rm -rf *
# build for arm
- cmake -D CMAKE_TOOLCHAIN_FILE=../arm_toolchain.cmake ..
- make
- cp ./source/main/testkit-stub ../dest/arm/
- rm -rf *
# build for ostro
- ../tools/install_ostro_sdk.sh
- cmake -D CMAKE_TOOLCHAIN_FILE=../ostro_toolchain.cmake ..
- make
- cp ./source/main/testkit-stub ../dest/ostro/
- rm -rf *
# build for Win32 with MinGW
- ../tools/prepare_pthread.sh
- cmake -D win32=ON -D GNU_HOST=i686-w64-mingw32 -D CMAKE_TOOLCHAIN_FILE=../mingw_cross_toolchain.cmake ..
- make
- cp ./source/main/testkit-stub.exe ../dest/windows/
- rm -rf *
# build for android
- cd ../tools
- ./install_android_ndk.sh
## build PIE binary
- cd ../android/jni/
- cp ./Android_PIE.mk ./Android.mk
- ../../android-ndk/ndk-build clean
- rm -rf ../libs/*
- ../../android-ndk/ndk-build
- cd ../
# build apk
- ./gradlew build --stacktrace
- cp -r build/outputs/apk ../dest/android_PIE/
- cd ..
## build non-PIE binary
- cd ./android/jni/
- cp ./Android_non_PIE.mk ./Android.mk
- ../../android-ndk/ndk-build clean
- rm -rf ../libs/*
- ../../android-ndk/ndk-build
- cd ../
# build apk
- ./gradlew build --stacktrace
- cp -r build/outputs/apk ../dest/android_non_PIE/
- cd ..
script:
- tree dest/
- tar -cvzf testkit-stub.tar.gz ./dest/
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: G6JJkJ6ok1mc5XGsN5fvKd0V0Kw3oLBDeBqc+AG/tW9drbY/LRC6FQ1s25dbMZySYtEiOquwngnRMDCpyyxU3ekhCetLhzwlS4lITh8jpeCMDdBML+kYYuwMmAIzGJ8LNUwaonXUWHZytTOWlScT+rOH6eKCIKcf27oGDlWH4K4=
file: ./testkit-stub.tar.gz
on:
repo: testkit/testkit-stub
tags: true
all_branches: true