diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 09:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 09:10:13 +0300 |
commit | d97b2fedc87c2fea2578b9bd80c12b2aecf22186 (patch) | |
tree | 416d365118b1143500946587d2ec5a2f0e24e2fd /lib/gitlab/ci/templates/Flutter.gitlab-ci.yml | |
parent | 6c46be4823292f25fa1fe28d1c899816c727893d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/templates/Flutter.gitlab-ci.yml')
-rw-r--r-- | lib/gitlab/ci/templates/Flutter.gitlab-ci.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/gitlab/ci/templates/Flutter.gitlab-ci.yml b/lib/gitlab/ci/templates/Flutter.gitlab-ci.yml new file mode 100644 index 00000000000..504ece611ca --- /dev/null +++ b/lib/gitlab/ci/templates/Flutter.gitlab-ci.yml @@ -0,0 +1,29 @@ +code_quality: + stage: test + image: "cirrusci/flutter:1.22.5" + before_script: + - pub global activate dart_code_metrics + - export PATH="$PATH":"$HOME/.pub-cache/bin" + script: + - metrics lib -r codeclimate > gl-code-quality-report.json + artifacts: + reports: + codequality: gl-code-quality-report.json + +test: + stage: test + image: "cirrusci/flutter:1.22.5" + 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 |