mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
23 lines
706 B
YAML
23 lines
706 B
YAML
# This file is a template, and might need editing before it works on your project.
|
|
test:
|
|
stage: test
|
|
except:
|
|
- triage
|
|
image: "ghcr.io/cirruslabs/flutter:3.16.9"
|
|
before_script:
|
|
- apt-get update -qq && apt-get install -y -qq libsqlite3-dev
|
|
- flutter 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: app/report.xml
|
|
expire_in: 6 mos
|