# HG changeset patch # User Thierry Florac # Date 1574869231 -3600 # Node ID 62937d005eb7c45a8cbc410c56c674b33889a5da # Parent 68fab7a5494d9e37ccd0595bba54d1337853f463 Removed test stage diff -r 68fab7a5494d -r 62937d005eb7 .gitlab-ci.yml --- a/.gitlab-ci.yml Wed Nov 27 16:35:42 2019 +0100 +++ b/.gitlab-ci.yml Wed Nov 27 16:40:31 2019 +0100 @@ -1,7 +1,6 @@ image: python:3.5 stages: - - test - dist - quality @@ -23,22 +22,6 @@ - python3.5 bootstrap.py --buildout-version=2.12.0 - ./bin/buildout -test: - stage: test - script: - - pip install anybadge - - mkdir ./coverage - - ./bin/test --coverage coverage | tee ./coverage/coverage.log - - GLOBAL_COVER=$(/bin/grep -e '^[[:space:]]*[[:digit:]]\+[[:space:]]\+[[:digit:]]\+\%' ./coverage/coverage.log | - awk '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: - paths: - - ./coverage/ - dist: stage: dist script: