Last active
March 8, 2017 05:05
-
-
Save aveao/6f8574c891d74a6420d51c79db5aa7d8 to your computer and use it in GitHub Desktop.
.travis.yml for Apache Cordova (android)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: android | |
sudo: required | |
android: | |
components: | |
- platform-tools | |
- tools | |
- build-tools-25.0.2 | |
- android-25 | |
before_install: | |
- sudo add-apt-repository ppa:webupd8team/java -y | |
- sudo apt-get update | |
- sudo apt-get install oracle-java8-installer -y | |
- jdk_switcher use oraclejdk8 | |
install: | |
- nvm install 6 | |
- npm install cordova | |
cache: | |
directories: | |
- /home/travis/.gradle/ | |
script: | |
- cordova build android |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've committed with caching info. Caching saves around 20 seconds for me, which while isn't perfect, helps. (3 minutes 11 secs vs 2 mins 49 secs)