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

3 4 5 6 7
cache:
  paths:
    - .gradle/wrapper
    - .gradle/caches

8
test:
9
  script:
10
    - export GRADLE_USER_HOME=$PWD/.gradle
11 12 13 14
    - cd F-Droid
    - ./tools/langs-list-check.py
    - ./tools/check-string-format.py
    - cd ..
Daniel Martí's avatar
Daniel Martí committed
15 16
    - ./gradlew build
    - ./gradlew checkstyle
Daniel Martí's avatar
Daniel Martí committed
17
    - ./gradlew pmd
18 19
    - 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 &
20
    - ./tools/wait-for-emulator
21
    - adb shell input keyevent 82
Daniel Martí's avatar
Daniel Martí committed
22
    - ADB_INSTALL_TIMEOUT=8 ./gradlew connectedCheck || { adb logcat -d '*:W'; exit 1; }
23
    - sed -n 's/.*"ctr2">\([0-9]*\)%<.*/Coverage - \1.0% covered\n/p' F-Droid/build/reports/coverage/debug/index.html