Skip to content

Instantly share code, notes, and snippets.

@aveao
Last active March 8, 2017 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aveao/6f8574c891d74a6420d51c79db5aa7d8 to your computer and use it in GitHub Desktop.
Save aveao/6f8574c891d74a6420d51c79db5aa7d8 to your computer and use it in GitHub Desktop.
.travis.yml for Apache Cordova (android)
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
@aveao
Copy link
Author

aveao commented Mar 8, 2017

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment