Commit 2e94341a authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'change-gitlab-ci' into 'master'

Add gradle caching and use node images for non-android stages on CI

See merge request !167
parents 819a7e1b bb73b55e
image: thalia/android-react-native:latest
image: node:8-alpine
variables:
GRADLE_USER_HOME: $CI_PROJECT_DIR/.gradle
......@@ -53,10 +53,16 @@ jest:
# - .gradle/caches/
build android:
image: thalia/android-react-native:latest
stage: build
cache:
key: gradle cache
paths:
- $CI_PROJECT_DIR/.gradle/wrapper/
- $CI_PROJECT_DIR/.gradle/caches/
script:
- cd $CI_PROJECT_DIR/android/
- gradle --no-daemon ":app:assemble"
- ./gradlew --no-daemon ":app:assemble"
artifacts:
paths:
- $CI_PROJECT_DIR/android/app/build/outputs/apk/app-debug.apk
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment