nc-photos/.gitlab-ci.yml

22 lines
618 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:
- cd app
- 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/app/coverage
reports:
junit: report.xml
expire_in: 6 mos