.gitlab-ci.yml 575 Bytes
Newer Older
1
image: registry.gitlab.com/fdroid/ci-images-server:latest
2

3
before_script:
Daniel Martí's avatar
Daniel Martí committed
4
  - rm -rf fdroidserver
5
  - git clone --depth=1 https://gitlab.com/fdroid/fdroidserver.git
6
  - export PATH="$PWD/fdroidserver:$PATH"
7
  - touch config.py
8

9
lint:
Daniel Martí's avatar
Daniel Martí committed
10
  script:
11 12 13 14 15 16 17 18 19 20
    - export EXITVALUE=0
    - fdroid lint -f || {
          export EXITVALUE=1;
          printf "\nThese files have lint issues:\n";
          fdroid rewritemeta -l;
          printf "\nThese are the formatting issues:\n";
          fdroid rewritemeta;
          git --no-pager diff --color=always;
      }
    - exit $EXITVALUE