-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
95 lines (84 loc) · 2.3 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
- mkdir build
- cd build
- cmake -Dx86_64=ON ..
- make
- cp ./tinyweb ../dest/x86_64/
- cp ./cgi-getcookie ../dest/x86_64/
- cp ./cgi-getfield ../dest/x86_64/
- rm -rf *
- cmake -Di386=ON ..
- make
- cp ./tinyweb ../dest/i386/
- cp ./cgi-getcookie ../dest/i386/
- cp ./cgi-getfield ../dest/i386/
- rm -rf *
- cmake -D CMAKE_TOOLCHAIN_FILE=../arm_toolchain.cmake ..
- make
- cp ./tinyweb ../dest/arm/
- cp ./cgi-getcookie ../dest/arm/
- cp ./cgi-getfield ../dest/arm/
- rm -rf *
#build ostro binary
- ../tools/install_ostro_sdk.sh
- cmake -D CMAKE_TOOLCHAIN_FILE=../ostro_toolchain.cmake ..
- make
- cp ./tinyweb ../dest/ostro/
- cp ./cgi-getcookie ../dest/ostro/
- cp ./cgi-getfield ../dest/ostro/
- rm -rf *
#build android ndk binary
- cd ../tools
- ./install_android_ndk.sh
## build PIE binary
- cd ../android/native/jni/
- cp ./Android_PIE.mk ./Android.mk
- ../../../android-ndk/ndk-build clean
- rm -rf ../libs/*
- ../../../android-ndk/ndk-build
- cd ../../
- rm -rf ./assets/system/libs/*
- cp -r ./native/libs ./assets/system/
## copy busybox dest
- cp -r ../tools/busybox_dest/libs ./assets/system/
- ./gradlew build --stacktrace
- cp -r build/outputs/apk ../dest/android_PIE/
- cd ..
## build non-PIE binary
- cd ./android/native/jni/
- cp ./Android_non_PIE.mk ./Android.mk
- ../../../android-ndk/ndk-build clean
- rm -rf ../libs/*
- ../../../android-ndk/ndk-build
- cd ../../
- rm -rf ./assets/system/libs/*
- cp -r ./native/libs ./assets/system/
## copy busybox dest
- cp -r ../tools/busybox_dest/libs ./assets/system/
- ./gradlew build --stacktrace
- cp -r build/outputs/apk ../dest/android_non_PIE/
- cd ..
script:
- tree dest/
- tar -cvzf tinyweb.tar.gz ./dest/
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: cGpRQL/OS+/b6Z2ULnAs41l5Oj9ZhCzGPNZ/ozRtGBUMpo8EQlbtiAyvENLn50DhXbT/01+ZkUOgm0jNASAu72UTZIz79393+5AoJfgx7L3cG/i+Hp6HFWFt0N7vPQyK8AdCM401GnhCeSo+/5tLqkgFuGvChAOp5uKaj46dg5U=
file: ./tinyweb.tar.gz
on:
repo: testkit/tinyweb
tags: true
all_branches: true