debian-mirror-gitlab/lib/gitlab/ci/templates/Flutter.gitlab-ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.3 KiB
YAML
Raw Normal View History

2022-08-13 15:12:31 +05:30
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
2021-09-30 23:02:18 +05:30
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Flutter.gitlab-ci.yml
2021-03-08 18:12:59 +05:30
code_quality:
stage: test
image: "cirrusci/flutter:1.22.5"
before_script:
- pub global activate dart_code_metrics
2022-05-07 20:08:51 +05:30
- export PATH="$PATH:$HOME/.pub-cache/bin"
2021-03-08 18:12:59 +05:30
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
2022-05-07 20:08:51 +05:30
- export PATH="$PATH:$HOME/.pub-cache/bin"
2021-03-08 18:12:59 +05:30
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
2022-11-25 23:54:43 +05:30
deploy:
stage: deploy
script: echo "Define your deployment script!"
environment: production