diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..784724989 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +language: android +android: + components: + - platform-tools + - tools + + # The BuildTools version used by your project + - build-tools-25.0.1 + - android-25 + - extra-android-m2repository + - extra-google-m2repository + - extra-android-support + - extra-google-google_play_services + + licenses: + - android-sdk-license-.+ + - '.+' + +jdk: + - oraclejdk8 + +before_script: + - chmod +x gradlew + +before_install: + - mkdir "$ANDROID_HOME/licenses" || true + - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" + - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" + +#Build, and run tests +script: "./gradlew clean assembleDebug" +sudo: false + +before_cache: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + +cache: + directories: + - $HOME/.gradle/caches/ + - $HOME/.gradle/wrapper/ + +env: + - GRADLE_OPTS="-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m" diff --git a/README.md b/README.md index 46b97f91d..d85ec9cfe 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Travis](https://img.shields.io/travis/inorichi/tachiyomi-extensions.svg)](https://travis-ci.org/inorichi/tachiyomi-extensions) +[![fdroid dev](https://img.shields.io/badge/stable-wiki-blue.svg)](//github.com/inorichi/tachiyomi/wiki/FDroid-for-dev-versions) + This repository contains the available extension catalogues for the Tachiyomi app. [Download links to be added] @@ -31,4 +34,4 @@ apply from: '../common.gradle' \* Note: this library only contains the method definitions so that the compiler can resolve them. The actual implementation is written in Tachiyomi. -When everything is done, you can create the apk in Android Studio with `Build > Build APK` or `Build > Generate Signed APK`. \ No newline at end of file +When everything is done, you can create the apk in Android Studio with `Build > Build APK` or `Build > Generate Signed APK`.