Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(travis): Fix Android SDK #765

Merged
merged 5 commits into from
Jul 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 32 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
language: android
sudo: false

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=6
- nodejs_version=8
- nodejs_version=10

language: android
jdk:
- oraclejdk8
- oraclejdk8

android:
components:
- build-tools-28.0.3
env:
global:
# Keep gradle from crapping all over the log
- TERM=dumb
matrix:
- nodejs_version=6
- nodejs_version=8
- nodejs_version=10
components:
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

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
before_install:
- nvm install $nodejs_version
- node --version
- npm --version
- gradle --version

- nvm install $nodejs_version
- npm install
- npm install -g codecov
install:
- npm install
- npm install -g codecov

script:
- gradle --version
- node --version
- npm --version
- npm test
- npm run cover
- npm test
- npm run cover

after_script:
- codecov
- codecov