forked from android/ndk-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (32 loc) · 897 Bytes
/
.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
language: android
sudo: true
android:
components:
- tools
- platform-tools
- extra-google-m2repository
- extra-android-m2repository
addons:
apt_packages:
- pandoc
# artifacts:
# paths:
# - $(git ls-files -o | grep app/build/outputs | tr "\n" ":")
before_install:
- sudo apt-get install ant
install:
- echo y | sdkmanager "ndk-bundle"
- echo y | sdkmanager "cmake;3.6.4111459"
- echo y | sdkmanager --channel=3 --channel=1 "cmake;3.10.2.4988404"
- echo y | sdkmanager "lldb;3.1"
# - sdkmanager --update
before_script:
- export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
script:
# scripts excutes inside our repo directory on CI machine
- export SAMPLE_CI_RESULT=0
- source .ci_tools/setup_env.sh
- source .ci_tools/build_samples.sh
- source .ci_tools/run_samples.sh
- source .ci_tools/misc_ci.sh
- eval "[[ $SAMPLE_CI_RESULT == 0 ]]"