Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
bb73b55e
Verified
Commit
bb73b55e
authored
Mar 20, 2018
by
Sébastiaan Versteeg
Browse files
Add gradle caching and use node images for non-android stages
parent
e7ea31ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
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"
-
./
gradle
w
--no-daemon ":app:assemble"
artifacts
:
paths
:
-
$CI_PROJECT_DIR/android/app/build/outputs/apk/app-debug.apk
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment