You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/07/11 10:16:36 UTC
[cordova-android] branch master updated: ci(travis): Fix Android
SDK (#765)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git
The following commit(s) were added to refs/heads/master by this push:
new 906f8cc ci(travis): Fix Android SDK (#765)
906f8cc is described below
commit 906f8cc002f14ac72968bc0d812069b120b5e0a6
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Thu Jul 11 12:16:29 2019 +0200
ci(travis): Fix Android SDK (#765)
* add node 12
* try to cleanup and fix
* fix
* fix
* no node 12 then...
---
.travis.yml | 59 ++++++++++++++++++++++++++++++++---------------------------
1 file changed, 32 insertions(+), 27 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index dc4e7ae..d6cd8f5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org