blob: aaa0b2fbebc25d4befe04cf7b5565d3420d361e5 [file] [log] [blame]
Hans-Christoph Steinereb54f682017-03-14 22:09:29 +01001image: registry.gitlab.com/fdroid/ci-images:client
Hans-Christoph Steiner91d025c2016-08-08 16:35:46 +02002
3cache:
4 paths:
5 - .gradle/wrapper
6 - .gradle/caches
7
8test:
9 script:
10 - export GRADLE_USER_HOME=$PWD/.gradle
Hans-Christoph Steinere40a2502016-08-08 16:36:31 +020011 # always report on lint errors to the build log
12 - sed -i -e 's,textReport .*,textReport true,' app/build.gradle
Hans-Christoph Steiner899f6da2016-08-09 16:33:17 +020013 - ./gradlew build || {
Hans-Christoph Steiner91d025c2016-08-08 16:35:46 +020014 for log in app/build/reports/*ests/*/*ml; do
15 echo "read $log here:";
16 cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com;
17 done;
18 exit 1;
19 }
20 # this file changes every time but should not be cached
21 - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
Hans-Christoph Steiner0887baf2016-08-10 11:59:12 +020022 - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/
23
24connected10:
25 variables:
26 AVD_SDK: "10"
27 script:
28 - export GRADLE_USER_HOME=$PWD/.gradle
29 - emulator64-arm -avd fcl-test-$AVD_SDK -no-skin -no-audio -no-window &
30 - ./tools/wait-for-emulator
31 - adb shell input keyevent 82 &
32 - export EXITVALUE=0
33 - ./gradlew connectedCheck || {
34 adb -e logcat -d '*:E';
35 echo "get the full logcat here:";
36 adb -e logcat -d | curl --silent -F 'clbin=<-' https://clbin.com;
37 export EXITVALUE=1;
38 }
39 - for log in app/build/reports/*ests/*/*ml
40 app/build/outputs/*results*/connected/*.xml; do
41 echo "read $log here:";
42 cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com;
43 done
44 # this file changes every time but should not be cached
45 - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
46 - exit $EXITVALUE
47
48connected24:
49 variables:
50 AVD_SDK: "24"
51 script:
52 - export GRADLE_USER_HOME=$PWD/.gradle
53 - emulator64-x86 -avd fcl-test-$AVD_SDK -no-skin -no-audio -no-window &
54 - ./tools/wait-for-emulator
55 - adb shell input keyevent 82 &
56 - export EXITVALUE=0
57 - ./gradlew connectedCheck || {
58 adb -e logcat -d '*:E';
59 echo "get the full logcat here:";
60 adb -e logcat -d | curl --silent -F 'clbin=<-' https://clbin.com;
61 export EXITVALUE=1;
62 }
63 - for log in app/build/reports/*ests/*/*ml
64 app/build/outputs/*results*/connected/*.xml; do
65 echo "read $log here:";
66 cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com;
67 done
68 # this file changes every time but should not be cached
69 - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
70 - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/
71 - exit $EXITVALUE
Hans-Christoph Steiner9db56cf2016-08-10 11:59:55 +020072
73checkstyle:
74 script:
75 - export GRADLE_USER_HOME=$PWD/.gradle
76 - ./gradlew checkstyle
77 # this file changes every time but should not be cached
78 - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
79 - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/