Commit 7b3d6404 authored by Wietse Kuipers's avatar Wietse Kuipers
Browse files

Merge branch 'android-react-build' into 'master'

Add Android buildstep

See merge request !154
parents 8ff10b76 fc27304b
image: node:8
image: thalia/android-react-native:latest
variables:
GRADLE_USER_HOME: $CI_PROJECT_DIR/.gradle
......@@ -6,14 +6,9 @@ variables:
stages:
- dependencies
- validate
- build
cache:
key: $CI_JOB_NAME
paths:
- .gradle/wrapper/
- .gradle/caches/
dependencies:
yarn dependencies:
stage: dependencies
cache:
key: $CI_JOB_NAME
......@@ -39,3 +34,30 @@ jest:
stage: validate
script:
- yarn jest
# We don't need this step as long as there are no tests for the native Android code
# test android:
# stage: validate
# script:
# - cd $CI_PROJECT_DIR/android/
# - gradle --no-daemon --continue ":app:testDebugUnitTest" ":app:testReleaseUnitTest"
# cache:
# key: $CI_JOB_NAME
# paths:
# - .gradle/wrapper/
# - .gradle/caches/
# artifacts:
# expire_in: 1 hour
# paths:
# - .gradle/wrapper/
# - .gradle/caches/
build android:
stage: build
script:
- cd $CI_PROJECT_DIR/android/
- gradle --no-daemon ":app:assemble"
artifacts:
paths:
- $CI_PROJECT_DIR/android/app/build/outputs/apk/app-debug.apk
- $CI_PROJECT_DIR/android/app/build/outputs/apk/app-release.apk
\ No newline at end of file
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