forked from schwabe/ics-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.22 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
language: android
git:
depth: 1
jdk: oraclejdk8
android:
components:
- tools
- build-tools-27.0.3
- extra-android-m2repository
- platform-tools
licenses:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
script:
# Building one variant is enough and already takes quite a long time...
- ./gradlew assembleNormalRelease
before_script:
# Install packages
- sudo add-apt-repository ppa:teward/swig3.0 -y
- sudo apt-get update -q
- sudo apt-get install -q unzip swig3.0 cmake
# Annoying workarounds #1
- sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
- swig -version
# Annoying workarounds #2
- yes | sdkmanager "platforms;android-27"
- curl -L https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip -O
- unzip -q android-ndk-r16b-linux-x86_64.zip
- rm android-ndk-r16b-linux-x86_64.zip
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r16b
- export LOCAL_ANDROID_NDK_HOME="$ANDROID_NDK_HOME"
- export PATH=$PATH:${ANDROID_NDK_HOME}