diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..2c3cae211b264ff90cc5e74ab88f23281dae3271 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest" + +stages: + - build + +before_script: + - export GRADLE_USER_HOME=$(pwd)/.gradle + - chmod +x ./gradlew + - ./gradlew clean + +cache: + key: ${CI_PROJECT_ID} + paths: + - .gradle/ + +build: + stage: build + script: + - | + ./gradlew assemble + retval=$? + if [$retval -ne 0]; then + echo "error on building, exit code: "$retval + exit $retval + fi + artifacts: + paths: + - app/build/outputs/