Skip to content

Instantly share code, notes, and snippets.

@InNoobWeTrust
Last active November 20, 2017 05:26
Show Gist options
  • Save InNoobWeTrust/12ace6df0b7d508bb16992282c240a8b to your computer and use it in GitHub Desktop.
Save InNoobWeTrust/12ace6df0b7d508bb16992282c240a8b to your computer and use it in GitHub Desktop.
# This file is a template, and might need editing before it works on your project.
# Read more about this script on this blog post https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/, by Greyson Parrelli
image: mingc/android-build-box:latest
variables:
ANDROID_COMPILE_SDK: "25"
GRADLE_OPTS: '-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true'
before_script:
- chmod +x ./gradlew
- chmod +x ./mirror.sh
stages:
- build
- test
build:
stage: build
script:
- ./gradlew assemble
- ./mirror.sh
artifacts:
paths:
- app/build/outputs/
unitTests:
stage: test
script:
- ./gradlew test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment