Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9db96c00 authored by Amit Kumar's avatar Amit Kumar
Browse files

Add gitlab ci/cd configuration file

parent b10ac729
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+28 −0
Original line number Diff line number Diff line
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 build
      retval=$?
      if [$retval -ne 0]; then
        echo "error on building, exit code: "$retval
        exit $retval
      fi
  artifacts:
    paths:
      - app/build/outputs/apk