.gitlab-ci.yml 1.01 KB
Newer Older
Daniel Martí's avatar
Daniel Martí committed
1
image: mvdan/fdroid-ci:20160316
Daniel Martí's avatar
Daniel Martí committed
2

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

8
gradle:
9
  script:
10
    - export GRADLE_USER_HOME=$PWD/.gradle
11 12 13 14
    - ./gradlew assemble
    # always report on lint errors to the build log
    - sed -i -e 's,textReport .*,textReport true,' F-Droid/build.gradle
    - ./gradlew check
15 16
    - 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 &
17
    - ./tools/wait-for-emulator
18
    - adb shell input keyevent 82
Daniel Martí's avatar
Daniel Martí committed
19
    - ADB_INSTALL_TIMEOUT=8 ./gradlew connectedCheck || { adb logcat -d '*:W'; exit 1; }
20
    - sed -n 's/.*"ctr2">\([0-9]*\)%<.*/Coverage - \1.0% covered\n/p' F-Droid/build/reports/coverage/debug/index.html
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

pmd:
  script:
    - export GRADLE_USER_HOME=$PWD/.gradle
    - ./gradlew pmd

checkstyle:
  script:
    - export GRADLE_USER_HOME=$PWD/.gradle
    - ./gradlew checkstyle

tools:
  script:
    - cd F-Droid
    - ./tools/langs-list-check.py
    - ./tools/check-string-format.py