.gitlab-ci.yml 1 KB
Newer Older
Daniel Martí's avatar
Daniel Martí committed
1
image: mvdan/fdroid-ci:client-20160329
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
    - ./gradlew assemble
    # always report on lint errors to the build log
13
    - sed -i -e 's,textReport .*,textReport true,' app/build.gradle
14
    - ./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' app/build/reports/coverage/debug/index.html
21 22 23 24 25 26 27 28 29 30 31 32 33

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

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

tools:
  script:
34
    - cd app
35 36
    - ./tools/langs-list-check.py
    - ./tools/check-string-format.py