2015-01-15 21:33:24 +08:00
|
|
|
sudo: false
|
2019-07-11 18:16:29 +08:00
|
|
|
|
2019-07-15 04:54:26 +08:00
|
|
|
# NOTE: dist is added here to ensure that Travis CI works consistently
|
|
|
|
# on Node.js 12. It is desired to remove it once this issue is resolved
|
|
|
|
# or otherwise goes away.
|
|
|
|
dist: trusty
|
|
|
|
|
2019-07-11 18:16:29 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- ANDROID_API_LEVEL=28
|
|
|
|
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
|
|
|
|
- TERM=dumb # Keep gradle from crapping all over the log
|
|
|
|
matrix:
|
|
|
|
- nodejs_version=10
|
2019-07-15 05:20:47 +08:00
|
|
|
- nodejs_version=12
|
|
|
|
|
2019-07-11 18:16:29 +08:00
|
|
|
language: android
|
2016-09-02 02:21:24 +08:00
|
|
|
jdk:
|
2019-07-11 18:16:29 +08:00
|
|
|
- oraclejdk8
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2016-09-02 02:21:24 +08:00
|
|
|
android:
|
2019-07-11 18:16:29 +08:00
|
|
|
components:
|
|
|
|
- tools
|
|
|
|
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
|
|
|
|
- android-$ANDROID_API_LEVEL
|
|
|
|
licenses:
|
|
|
|
- 'android-sdk-preview-license-.+'
|
|
|
|
- 'android-sdk-license-.+'
|
|
|
|
- 'google-gdk-license-.+'
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2019-07-11 18:16:29 +08:00
|
|
|
before_install:
|
2019-07-15 05:20:47 +08:00
|
|
|
- nvm install $nodejs_version
|
2019-07-11 18:16:29 +08:00
|
|
|
- node --version
|
|
|
|
- npm --version
|
|
|
|
- gradle --version
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2019-07-11 18:16:29 +08:00
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
- npm install -g codecov
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2014-09-09 13:59:34 +08:00
|
|
|
script:
|
2019-07-11 18:16:29 +08:00
|
|
|
- npm test
|
|
|
|
- npm run cover
|
2018-06-13 22:09:09 +08:00
|
|
|
|
2016-03-16 22:42:01 +08:00
|
|
|
after_script:
|
2019-07-11 18:16:29 +08:00
|
|
|
- codecov
|