nc-photos/.gitlab-ci.yml
2021-09-02 10:48:20 +00:00

20 lines
580 B
YAML

# This file is a template, and might need editing before it works on your project.
test:
stage: test
except:
- triage
image: "cirrusci/flutter:latest"
before_script:
- pub global activate junitreport
- export PATH="$PATH":"$HOME/.pub-cache/bin"
script:
- flutter test --machine --coverage | tojunit -o report.xml
- lcov --summary coverage/lcov.info
- genhtml coverage/lcov.info --output=coverage
coverage: '/lines\.*: \d+\.\d+\%/'
artifacts:
name: coverage
paths:
- $CI_PROJECT_DIR/coverage
reports:
junit: report.xml