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

Commit 1e95d308 authored by Nihar Thakkar's avatar Nihar Thakkar Committed by Sumit Pundir
Browse files

Update .gitlab-ci.yml

parent b9e02b42
Loading
Loading
Loading
Loading
+13 −22
Original line number Diff line number Diff line
image: registry.gitlab.com/bitfireat/docker-android-emulator:latest
image: "registry.gitlab.eelo.io:5000/eelo/docker-android-apps-cicd:latest"

stages:
- build

before_script:
- git submodule update --init --recursive
  - export GRADLE_USER_HOME=`pwd`/.gradle; chmod +x gradlew
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew

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

test:
  tags:
    - privileged
  script:
   - start-emulator.sh
   - ./gradlew app:check app:connectedCheck
  artifacts:
    paths:
      - app/build/outputs/lint-results-debug.html
      - app/build/reports
      - build/reports

pages:
build:
  stage: build
  script:
    - ./gradlew app:dokka
    - mkdir public && mv app/build/dokka public
  - ./gradlew assembleDebug
  artifacts:
    paths:
      - public
  only:
    - master-ose
    - app/build/outputs/apk/standard/debug/app-standard-debug.apk