2014-09-09 13:59:34 +08:00
|
|
|
language: android
|
2015-01-15 21:33:24 +08:00
|
|
|
sudo: false
|
2016-09-02 02:21:24 +08:00
|
|
|
jdk:
|
|
|
|
- oraclejdk8
|
2017-09-13 02:21:20 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- ANDROID_TOOLS=${ANDROID_HOME}/tools
|
2016-08-19 15:18:11 +08:00
|
|
|
before_install:
|
|
|
|
- nvm install 6
|
2017-09-13 02:21:20 +08:00
|
|
|
# ensure at least gradle 3.3 is in place.
|
|
|
|
- wget http://services.gradle.org/distributions/gradle-3.3-bin.zip
|
|
|
|
- unzip gradle-3.3-bin.zip
|
|
|
|
- export GRADLE_HOME=$PWD/gradle-3.3
|
|
|
|
- export PATH=${GRADLE_HOME}/bin:${ANDROID_HOME}:${ANDROID_HOME}/emulator:${ANDROID_TOOLS}:${ANDROID_TOOLS}/bin:${ANDROID_HOME}/platform-tools:$PATH
|
2016-08-19 15:18:11 +08:00
|
|
|
- node --version
|
2017-03-14 02:53:59 +08:00
|
|
|
- gradle --version
|
2017-11-01 01:48:19 +08:00
|
|
|
- echo y | android --silent update sdk --no-ui --all --filter platform-tools,tools,build-tools-26.0.2,android-26,android-25,extra-google-m2repository,extra-android-m2repository
|
2016-09-02 02:21:24 +08:00
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
2017-09-13 02:21:20 +08:00
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
- npm install -g codecov
|
2014-09-09 13:59:34 +08:00
|
|
|
script:
|
2017-06-28 01:02:38 +08:00
|
|
|
- npm test
|
2016-03-16 22:42:01 +08:00
|
|
|
- npm run cover
|
|
|
|
after_script:
|
|
|
|
- codecov
|