mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
38 lines
836 B
YAML
38 lines
836 B
YAML
language: android
|
|
sudo: false
|
|
jdk:
|
|
- oraclejdk8
|
|
|
|
android:
|
|
components:
|
|
- build-tools-26.0.2
|
|
env:
|
|
global:
|
|
# Keep gradle from crapping all over the log
|
|
- TERM=dumb
|
|
matrix:
|
|
- nodejs_version=6
|
|
- nodejs_version=8
|
|
- nodejs_version=10
|
|
|
|
install:
|
|
# 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
|
|
|
|
- nvm install $nodejs_version
|
|
- npm install
|
|
- npm install -g codecov
|
|
|
|
script:
|
|
- gradle --version
|
|
- node --version
|
|
- npm --version
|
|
- npm test
|
|
- npm run cover
|
|
|
|
after_script:
|
|
- codecov
|