-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# https://hub.docker.com/r/google/dart | ||
image: google/dart:latest | ||
|
||
variables: | ||
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: | ||
- export PATH="$PATH":"~/.pub-cache/bin" | ||
- pub get --no-precompile | ||
|
||
style_check: | ||
stage: test | ||
script: | ||
- dart format -o none --set-exit-if-changed . | ||
|
||
lint: | ||
stage: test | ||
script: | ||
- dart analyze . | ||
|
||
test: | ||
stage: test | ||
script: | ||
- dart test $PUB_VARS |