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

Commit 45b7a3db authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

ci: add

parent 5befd5de
Loading
Loading
Loading
Loading
+29 −7
Original line number Diff line number Diff line
image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest"

stages:
  - auto-merge-main
  - build
  - update-from-upstream

include:
  - project: 'e/templates'
    ref: master
    file: '/gitlab-ci/.gitlab-ci-auto-merge-main.yml'
  - project: 'e/templates'
    ref: master
    file: '/gitlab-ci/.gitlab-ci-import-updates-from-upstream.yml'
  - 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.0
    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