Commit 12712c9c authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen Committed by Thomas Löffler
Browse files

[CI] Add Badge to Mutation job

parent 2a3981f2
......@@ -64,15 +64,25 @@ test:mutation:
- mkdir $TYPO3_PATH_WEB/fileadmin/ && touch $TYPO3_PATH_WEB/fileadmin/currentcoredata.json
script:
- composer install --ignore-platform-reqs
- ./vendor/bin/infection --min-msi=11 --min-covered-msi=79 --threads=4 > log.txt
- ./vendor/bin/infection --min-msi=11 --min-covered-msi=79 --threads=4 > mutation-metric-log.txt
artifacts:
paths:
- mutation-metric-log.txt
expire_in: 30 min
after_script:
mutation:badge:
stage: badges
image: python:3.6.6
before_script:
- echo "Python other dependencies installation"
- pip install anybadge
- mkdir badges
- cd badges
- mutation_msi=$(cat log.txt | grep 'Covered Code MSI' | cut -d ' ' -f 13)
script:
- mutation_msi=$(cat mutation-metric-log.txt | grep 'Covered Code MSI' | cut -d ' ' -f 13)
- anybadge -l "Mutation" -v $mutation_msi -f mutation_msi.svg -c orange
artifacts:
paths:
- badges/mutation_msi.svg
expire_in: 1 week
\ No newline at end of file
- badges/
when: always
expire_in: 4 weeks
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment