-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
30 lines (30 loc) · 1.08 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
language: android
android:
components:
- tools
- build-tools-28.0.3
- android-28
before_install:
# These might be required: libtool shtool automake autoconf git-core pkg-config make gcc
- sudo apt-get update
- sudo apt-get install -y gcc-arm-none-eabi
install:
# - wget https://dl.google.com/android/repository/cmake-3.6.4111459-linux-x86_64.zip
# - unzip -qq cmake-3.6.4111459-linux-x86_64.zip
# - wget https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
# - unzip -qq android-ndk-r17c-linux-x86_64.zip
- echo y | sdkmanager "ndk-bundle"
- echo y | sdkmanager "cmake;3.6.4111459"
- $ANDROID_HOME/ndk-bundle/build/tools/make_standalone_toolchain.py --arch arm --api 24 --install-dir ndk-toolchain
before_cache:
- rm -f $HOME/android/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/android/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/android/.gradle/caches/
- $HOME/android/.gradle/wrapper/
- $HOME/android/.android/build-cache
before_script:
- export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
script:
- ./build.sh