2021-04-15 20:47:35 +02:00
|
|
|
# This file is a template, and might need editing before it works on your project.
|
|
|
|
test:
|
|
|
|
stage: test
|
2021-09-02 12:48:20 +02:00
|
|
|
except:
|
|
|
|
- triage
|
2022-11-13 11:31:17 +01:00
|
|
|
image: "cirrusci/flutter:3.3.8"
|
2021-04-15 20:57:27 +02:00
|
|
|
before_script:
|
2022-07-24 17:54:21 +02:00
|
|
|
- apt-get update -qq && apt-get install -y -qq libsqlite3-dev
|
2022-07-16 05:00:46 +02:00
|
|
|
- flutter pub global activate junitreport
|
2021-04-15 20:57:27 +02:00
|
|
|
- export PATH="$PATH":"$HOME/.pub-cache/bin"
|
2021-04-15 20:47:35 +02:00
|
|
|
script:
|
2022-04-23 10:58:57 +02:00
|
|
|
- cd app
|
2021-04-15 20:57:27 +02:00
|
|
|
- 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:
|
2022-04-23 10:58:57 +02:00
|
|
|
- $CI_PROJECT_DIR/app/coverage
|
2021-04-15 20:57:27 +02:00
|
|
|
reports:
|
2022-04-23 11:53:50 +02:00
|
|
|
junit: app/report.xml
|
2021-10-09 22:51:57 +02:00
|
|
|
expire_in: 6 mos
|