Capture test results from JUnit output

This commit is contained in:
Michael Miller 2021-02-09 18:31:41 -07:00
parent 969a1f7755
commit bbd9acda33
No known key found for this signature in database
GPG Key ID: FB9F12F7C646A4AD
1 changed files with 14 additions and 2 deletions

View File

@ -14,7 +14,13 @@ before_script:
spec:
script:
- shards
- crystal spec --error-on-warnings
- crystal spec --error-on-warnings --junit_output=.
artifacts:
when: always
paths:
- output.xml
reports:
junit: output.xml
format:
script:
@ -31,8 +37,14 @@ nightly:
allow_failure: true
script:
- shards --ignore-crystal-version
- crystal spec --error-on-warnings
- crystal spec --error-on-warnings --junit_output=.
- crystal tool format --check
artifacts:
when: always
paths:
- output.xml
reports:
junit: output.xml
pages:
stage: deploy