Verified Commit bb73b55e authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

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

parent e7ea31ae
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