Skip to content

Instantly share code, notes, and snippets.

@warnyul
Created July 22, 2018 16:46
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 warnyul/d69481f6c4b3b3c16d77b192a534fd70 to your computer and use it in GitHub Desktop.
Save warnyul/d69481f6c4b3b3c16d77b192a534fd70 to your computer and use it in GitHub Desktop.
Build Kotlin Multiplatform project on Travis CI
language: objective-c
osx_image: xcode9.4
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
- directories:
# Android SDK
- $HOME/android-sdk-dl
- $HOME/android-sdk
# Gradle dependencies
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Android build cache (see http://tools.android.com/tech-docs/build-cache)
- $HOME/.android/build-cache
- $HOME/.konan/cache
env:
- ANDROID_HOME=$HOME/android-sdk JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
before_install:
- ./scripts/download_android_sdk_for_mac.sh
script:
- ./gradlew clean build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment