blob: 677a12ab7107369f5143e913291238458c2048d2 (
plain)
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
|
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:
# Force signing with the debug keys
- echo icsopenvpnDebugSign=true > ~/.gradle/gradle.properties
# Building one variant is enough and already takes quite a long time...
- ./gradlew assembleUiRelease
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
#- curl -L https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip
#- unzip -q android-ndk-r19b-linux-x86_64.zip
#- rm android-ndk-r19b-linux-x86_64.zip
#- export ANDROID_NDK_HOME=`pwd`/android-ndk-r16b
#- export LOCAL_ANDROID_NDK_HOME="$ANDROID_NDK_HOME"
#- yes | sdkmanager --update
#- yes | sdkmanager --licenses
- yes | sdkmanager 'ndk-bundle'
- yes | sdkmanager 'platforms;android-28'
- export PATH=$PATH:${ANDROID_NDK_HOME}
|