diff options
author | Andrew Dolgov <[email protected]> | 2017-04-24 19:39:04 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-24 19:39:04 +0300 |
commit | f63e4a08df2caa704e629f276da5f11c90ecc227 (patch) | |
tree | 36de1a1fb0cd98e87b861a8a67ac112c93bca307 | |
parent | 1e48397853a72e712a5c6aa5ad9c6e2a659fc707 (diff) |
add ci stuff
-rw-r--r-- | .gitlab-ci.yml | 42 | ||||
-rwxr-xr-x | org.fox.ttrss/build.gradle | 2 |
2 files changed, 43 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..8071625c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,42 @@ +image: openjdk:8-jdk + +variables: + ANDROID_COMPILE_SDK: "23" + ANDROID_BUILD_TOOLS: "23.0.1" + ANDROID_SDK_TOOLS: "24" + +before_script: + - apt-get --quiet update --yes + - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 + - wget --no-clobber --quiet --output-document=android-sdk-${ANDROID_SDK_TOOLS}.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz || true + - tar --extract --gzip --file=android-sdk-${ANDROID_SDK_TOOLS}.tgz + - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK} + - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools + - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS} + - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository + - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services + - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository + - export ANDROID_HOME=$PWD/android-sdk-linux + - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/ + - chmod +x ./gradlew + - export GRADLE_USER_HOME=`pwd`/.gradle + - mkdir -p $ANDROID_HOME/licenses/ \ + && echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license + +cache: + paths: + - .gradle/wrapper + - .gradle/caches + - android-sdk-${ANDROID_SDK_TOOLS}.tgz + +stages: + - build + +build: + stage: build + script: + - ./gradlew assembleDebug + artifacts: + paths: + - org.fox.ttrss/build/outputs/apk/*.apk + diff --git a/org.fox.ttrss/build.gradle b/org.fox.ttrss/build.gradle index f00ba64f..82b450e0 100755 --- a/org.fox.ttrss/build.gradle +++ b/org.fox.ttrss/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 23 - buildToolsVersion "23" + buildToolsVersion "23.0.2" defaultConfig { applicationId "org.fox.ttrss" |