.gitlab-ci.yml 643 Bytes
Newer Older
Daniel Martí's avatar
Daniel Martí committed
1 2
image: mvdan/fdroid-ci:latest

3
test:
4
  script:
5 6 7 8
    - cd F-Droid
    - ./tools/langs-list-check.py
    - ./tools/check-string-format.py
    - cd ..
Daniel Martí's avatar
Daniel Martí committed
9 10
    - ./gradlew build
    - ./gradlew checkstyle
Daniel Martí's avatar
Daniel Martí committed
11
    - ./gradlew pmd
12 13
    - echo no | android create avd --force -n fcl-test -t android-10 -b armeabi
    - emulator -force-32bit -avd fcl-test -no-skin -no-audio -no-window &
14
    - ./tools/wait-for-emulator
15
    - adb shell input keyevent 82
Daniel Martí's avatar
Daniel Martí committed
16
    - ADB_INSTALL_TIMEOUT=8 ./gradlew connectedCheck || { adb logcat -d '*:W'; exit 1; }
17
    - sed -n 's/.*"ctr2">\([0-9]*\)%<.*/Coverage - \1.0% covered\n/p' F-Droid/build/reports/coverage/debug/index.html