forked from google/conscrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (65 loc) · 2.11 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
language: android
jdk: oraclejdk8
sudo: false
env:
global:
- NDK_VERSION=r11c
- BORINGSSL_HOME="$HOME/boringssl"
- CC=clang
- CXX=clang++
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/dists/
- $HOME/.cache/ndk
before_cache:
- find $HOME/.gradle -name "*.lock" -exec rm {} \;
- rm -rf $HOME/.gradle/caches/[1-9]*
before_script:
# newest Android NDK
- mkdir -p $HOME/.cache/ndk
- curl https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip -z $HOME/.cache/ndk/ndk-${NDK_VERSION}.zip -o $HOME/.cache/ndk/ndk-${NDK_VERSION}.zip
- unzip -q $HOME/.cache/ndk/ndk-$NDK_VERSION.zip -d $HOME
- echo "ndk.dir=$HOME/android-ndk-$NDK_VERSION" >> local.properties
# get BoringSSL
- mkdir $BORINGSSL_HOME
- git clone --depth 1 https://boringssl.googlesource.com/boringssl $BORINGSSL_HOME
# Build BoringSSL for 64-bit
- mkdir $BORINGSSL_HOME/build64 && pushd $BORINGSSL_HOME/build64
- cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release -DCMAKE_ASM_FLAGS=-Wa,--noexecstack -GNinja ..
- ninja
- popd
# Build BoringSSL for 32-bit
- mkdir $BORINGSSL_HOME/build32 && pushd $BORINGSSL_HOME/build32
- cmake -DCMAKE_TOOLCHAIN_FILE=../util/32-bit-toolchain.cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release -DCMAKE_ASM_FLAGS="-Wa,--noexecstack -m32 -msse2" -GNinja ..
- ninja
- popd
before_install:
- echo 'android.builder.sdkDownload=false' > gradle.properties
addons:
apt:
sources:
- kalakris-cmake
- ubuntu-toolchain-r-test
packages:
- clang
- cmake
- g++-multilib
- gcc-multilib
- libc6-dev-i386
- libc6-dev:i386
- ninja-build
android:
components:
- tools
- tools # https://github.com/travis-ci/travis-ci/issues/6040
- platform-tools
- extra-android-m2repository
- build-tools-25.0.0
- android-25
license:
- 'android-sdk-license-.+'
script:
- ./gradlew --stacktrace --info build
after_script:
- "[ -f android/build/outputs/lint-results-debug.xml ] && cat android/build/outputs/lint-results-debug.xml"