Updated awk command line
authorThierry Florac <tflorac@ulthar.net>
Wed, 27 Nov 2019 16:16:32 +0100
changeset 52 83614f884e7a
parent 51 3ed12c7be8ff
child 53 3163ef9c9a2a
Updated awk command line
.gitlab-ci.yml
--- a/.gitlab-ci.yml	Wed Nov 27 16:10:20 2019 +0100
+++ b/.gitlab-ci.yml	Wed Nov 27 16:16:32 2019 +0100
@@ -30,9 +30,9 @@
         - mkdir ./coverage
         - ./bin/test --coverage coverage | tee ./coverage/coverage.log
         - GLOBAL_COVER=$(/bin/grep -e '^[[:space:]]*[[:digit:]]\+[[:space:]]\+[[:digit:]]\+\%' ./coverage/coverage.log | \
-              /usr/bin/awk 'BEGIN { lines=0; cov=0 } \
-                   { lines = lines + $1; cov = cov + $1 * $2 / 100 } \
-                   END { printf "%.2f", cov / lines * 100 }')
+              mawk 'BEGIN { lines=0; cov=0 } \
+                    { lines = lines + $1; cov = cov + $1 * $2 / 100 } \
+                    END { printf "%.2f", cov / lines * 100 }')
         - anybadge --label=Coverage --file=./coverage/coverage.svg --value=$GLOBAL_COVER 20=red 40=orange 60=yellow 80=green
         - echo "Global tests coverage is $GLOBAL_COVER %"
     artifacts: