gfan | c351bd0 | 2018-06-11 11:25:36 -0700 | [diff] [blame] | 1 | language: android |
| 2 | sudo: true |
| 3 | android: |
| 4 | components: |
| 5 | - tools |
| 6 | - platform-tools |
| 7 | - extra-google-m2repository |
| 8 | - extra-android-m2repository |
| 9 | addons: |
| 10 | apt_packages: |
| 11 | - pandoc |
| 12 | before_install: |
| 13 | - sudo apt-get install ant |
| 14 | install: |
| 15 | - touch ~/.android/repositories.cfg |
| 16 | - echo y | sdkmanager "ndk-bundle" |
| 17 | - echo y | sdkmanager "cmake;3.6.4111459" |
gfan | c351bd0 | 2018-06-11 11:25:36 -0700 | [diff] [blame] | 18 | # the following line triggers Trivis-CI's 4MB log limit |
| 19 | # - sdkmanager --update |
| 20 | before_script: |
| 21 | - export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle |
| 22 | |
| 23 | script: |
| 24 | # scripts excutes inside our repo directory on CI machine |
| 25 | - export SAMPLE_CI_RESULT=0 |
| 26 | - source .ci_tools/setup_env.sh |
| 27 | - source .ci_tools/build_samples.sh |
| 28 | - source .ci_tools/run_samples.sh |
| 29 | - source .ci_tools/misc_ci.sh |
| 30 | - eval "[[ $SAMPLE_CI_RESULT == 0 ]]" |