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

Commit 266bdf23 authored by Romain Hunault's avatar Romain Hunault Committed by Fahim Salam Chowdhury
Browse files

Setup CI

parent f0b4fd47
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+30 −0
Original line number Diff line number Diff line
image: "registry.gitlab.eelo.io:5000/eelo/docker-android-apps-cicd:latest"

stages:
- build

before_script:
- if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew

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

build:
  stage: build
  script:
  - git submodule update --recursive --init
  - ./gradlew build
  artifacts:
    paths:
    - app/build/outputs/apk/