A single step flutter lint, test and coverage pipeline for gitlab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache: | |
paths: | |
- /flutter/bin/cache/dart-sdk | |
build: | |
image: greycastle/jreader:2.3.0 | |
script: | |
- flutter analyze | |
- pub global activate junitreport | |
- export PATH="$PATH":"$HOME/.pub-cache/bin" | |
- flutter pub get | |
- flutter test --coverage --machine | tojunit > testreport.xml | |
- genhtml coverage/lcov.info --output=coverage | |
- mv coverage/ public/ | |
artifacts: | |
reports: | |
junit: testreport.xml | |
paths: | |
- public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment