2021-06-28 02:07:45 -04:00
|
|
|
# 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/Dart.gitlab-ci.yml
|
|
|
|
|
2020-06-23 11:08:41 -04:00
|
|
|
# https://hub.docker.com/r/google/dart
|
|
|
|
image: google/dart:2.8.4
|
|
|
|
|
|
|
|
variables:
|
|
|
|
# Use to learn more:
|
|
|
|
# pub run test --help
|
|
|
|
PUB_VARS: "--platform vm --timeout 30s --concurrency=6 --test-randomize-ordering-seed=random --reporter=expanded"
|
|
|
|
|
|
|
|
# Cache downloaded dependencies and plugins between builds.
|
|
|
|
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .pub-cache/global_packages
|
|
|
|
|
|
|
|
before_script:
|
2022-03-02 10:16:07 -05:00
|
|
|
- export PATH="$PATH:$HOME/.pub-cache/bin"
|
2020-06-23 11:08:41 -04:00
|
|
|
- pub get --no-precompile
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- pub run test $PUB_VARS
|