Skip to content
Snippets Groups Projects
Commit cddfdacb authored by Jonas Broeckmann's avatar Jonas Broeckmann
Browse files

Added release CI jobs

parent 63203e8c
No related branches found
No related tags found
No related merge requests found
Pipeline #1269272 failed
......@@ -56,6 +56,11 @@ before_script:
# Not necessary, but just for surity
- chmod +x ./gradlew
stages:
- build
- test
- release
# Basic android and gradle stuff
# Check linting
lintDebug:
......@@ -77,7 +82,7 @@ assembleDebug:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/
- app/build/outputs/apk/debug
# Run all tests, if any fails, interrupt the pipeline(fail it)
debugTests:
......@@ -86,3 +91,29 @@ debugTests:
stage: test
script:
- ./gradlew -Pci --console=plain :app:testDebug
assembleRelease:
stage: build
script:
- echo $KEYSTORE_FILE | base64 -d > tmp.keystore
- ./gradlew assembleRelease
-Pandroid.injected.signing.store.file=$(PWD)/tmp.keystore
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD
-Pandroid.injected.signing.key.alias=$KEY_ALIAS
-Pandroid.injected.signing.key.password=$KEY_PASSWORD
artifacts:
paths:
- app/build/outputs/apk/release
newRelease:
needs: [assembleRelease]
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo "Creating a new release $CI_COMMIT_TAG"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment