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

Commit e143f8d5 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Add gitlab ci

parent ecaad4d4
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+33 −0
Original line number Diff line number Diff line
image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest"

stages:
  - update-from-upstream
  - build

include:
  - project: "e/templates"
    ref: main
    file: "/.gitlab/gitlab-ci/gitlab-ci-import-updates-from-upstream.yml"

main:
  extends: .update-from-upstream
  variables:
    UPSTREAM_BRANCH: lineage-23.2
    LOCAL_BRANCH: main

before_script:
  - export GRADLE_USER_HOME=$(pwd)/.gradle
  - chmod +x ./gradlew

cache:
  key: ${CI_PROJECT_ID}
  paths:
    - .gradle/

build:
  stage: build
  script:
    - ./gradlew assemble
  artifacts:
    paths:
      - build/outputs/apk