forked from renard314/textfairy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (31 loc) · 1.04 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
sudo: true
addons:
apt:
packages:
- p7zip-full
language: android
android:
components:
- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
- build-tools-25.0.2
- android-25
before_install:
- export ANDROID_HOME=/usr/local/android-sdk
- wget https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip -O ndk.bin
- 7z x ndk.bin > /dev/null
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r15c
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${ANDROID_NDK_HOME}
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties
- echo $ANDROID_NDK_HOME
script:
- cd tess-two/tess-two
- $ANDROID_NDK_HOME/ndk-build
- cd ../../
- ./gradlew assembleDevelopDebug
after_failure: "cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml"