2014-09-09 09:59:34 +04:00
|
|
|
language: android
|
2015-01-15 14:33:24 +01:00
|
|
|
sudo: false
|
2016-09-01 11:21:24 -07:00
|
|
|
jdk:
|
|
|
|
- oraclejdk8
|
2017-09-12 11:21:20 -07:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- ANDROID_TOOLS=${ANDROID_HOME}/tools
|
2016-08-19 00:18:11 -07:00
|
|
|
before_install:
|
|
|
|
- nvm install 6
|
2017-09-12 11:21:20 -07: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 00:18:11 -07:00
|
|
|
- node --version
|
2017-03-13 11:53:59 -07:00
|
|
|
- gradle --version
|
2017-10-31 10:48:19 -07: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-01 11:21:24 -07:00
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
2017-09-12 11:21:20 -07:00
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
- npm install -g codecov
|
2014-09-09 09:59:34 +04:00
|
|
|
script:
|
2017-06-27 12:02:38 -05:00
|
|
|
- npm test
|
2016-03-16 17:42:01 +03:00
|
|
|
- npm run cover
|
|
|
|
after_script:
|
|
|
|
- codecov
|