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
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2016-09-02 02:21:24 +08:00
|
|
|
android:
|
|
|
|
components:
|
2018-06-13 22:09:09 +08:00
|
|
|
- build-tools-26.0.2
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# Keep gradle from crapping all over the log
|
|
|
|
- TERM=dumb
|
2018-06-13 22:09:12 +08:00
|
|
|
matrix:
|
|
|
|
- nodejs_version=6
|
|
|
|
- nodejs_version=8
|
|
|
|
- nodejs_version=10
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2017-09-13 02:21:20 +08:00
|
|
|
install:
|
2018-06-13 22:09:09 +08:00
|
|
|
# Install a sdkmanager version that supports the --licenses switch and
|
|
|
|
# accept any Android SDK licenses. The output redirection prevents us from
|
|
|
|
# hitting the travis log size limit of 4MB which would fail the build.
|
|
|
|
- yes | sdkmanager tools > /dev/null
|
|
|
|
- yes | sdkmanager --licenses > /dev/null
|
|
|
|
|
2018-06-13 22:09:12 +08:00
|
|
|
- nvm install $nodejs_version
|
2017-09-13 02:21:20 +08:00
|
|
|
- npm install
|
|
|
|
- npm install -g codecov
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2014-09-09 13:59:34 +08:00
|
|
|
script:
|
2018-06-13 22:09:09 +08:00
|
|
|
- gradle --version
|
|
|
|
- node --version
|
|
|
|
- npm --version
|
2017-06-28 01:02:38 +08:00
|
|
|
- npm test
|
2016-03-16 22:42:01 +08:00
|
|
|
- npm run cover
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2016-03-16 22:42:01 +08:00
|
|
|
after_script:
|
|
|
|
- codecov
|