Sfoglia il codice sorgente

Gradle should log plain

With the parameter '--console=plain' Gradle produces a plain text log without
charachter garbage which is created by animations.

Signed-off-by: Tim Krüger <t@timkrueger.me>
Tim Krüger 3 anni fa
parent
commit
2370ad3c00
3 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 2 2
      .drone.yml
  2. 3 3
      scripts/analysis/findbugs-up.rb
  3. 2 2
      scripts/analysis/lint-up.rb

+ 2 - 2
.drone.yml

@@ -5,7 +5,7 @@ steps:
 - name: generic
 - name: generic
   image: nextcloudci/android:android-44
   image: nextcloudci/android:android-44
   commands:
   commands:
-    - ./gradlew assembleGeneric
+    - ./gradlew --console=plain assembleGeneric
 
 
 trigger:
 trigger:
   branch:
   branch:
@@ -22,7 +22,7 @@ steps:
 - name: gplay
 - name: gplay
   image: nextcloudci/android:android-44
   image: nextcloudci/android:android-44
   commands:
   commands:
-    - ./gradlew assembleGplay
+    - ./gradlew --console=plain assembleGplay
 
 
 trigger:
 trigger:
   branch:
   branch:

+ 3 - 3
scripts/analysis/findbugs-up.rb

@@ -47,16 +47,16 @@ require 'xmlsimple'
 
 
 # run FindBugs
 # run FindBugs
 puts "running FindBugs..."
 puts "running FindBugs..."
-system './gradlew assembleGplayDebug 1>/dev/null'
+system './gradlew --console=plain assembleGplayDebug 1>/dev/null'
 
 
 # confirm that assemble ran w/out error
 # confirm that assemble ran w/out error
 result = $?.to_i
 result = $?.to_i
 if result != 0
 if result != 0
-    puts "FAIL: failed to run ./gradlew assembleGplayDebug"
+    puts "FAIL: failed to run ./gradlew --console=plain assembleGplayDebug"
     exit 1
     exit 1
 end
 end
 
 
-system './gradlew spotbugsGplayDebugReport 1>/dev/null 2>&1'
+system './gradlew --console=plain spotbugsGplayDebugReport 1>/dev/null 2>&1'
 
 
 # find FindBugs report file
 # find FindBugs report file
 findbugs_reports = Dir.glob(FINDBUGS_REPORT_FILE)
 findbugs_reports = Dir.glob(FINDBUGS_REPORT_FILE)

+ 2 - 2
scripts/analysis/lint-up.rb

@@ -56,12 +56,12 @@ end
 
 
 # run Lint
 # run Lint
 puts "running Lint..."
 puts "running Lint..."
-system './gradlew clean lintGplayDebug'
+system './gradlew --console=plain clean lintGplayDebug'
 
 
 # confirm that Lint ran w/out error
 # confirm that Lint ran w/out error
 result = $?.to_i
 result = $?.to_i
 if result != 0
 if result != 0
-    puts "FAIL: failed to run ./gradlew clean lintGplayDebug"
+    puts "FAIL: failed to run ./gradlew --console=plain clean lintGplayDebug"
     exit 1
     exit 1
 end
 end