From 12c143ccca6323b6e80ae5a848cfbdfa19a63a1c Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 17 Oct 2021 21:55:01 -0700 Subject: [PATCH] Added GitLab CI configuration. --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..110aa8c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: google/dart + +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 + +test: + stage: test + script: + - pub run test $PUB_VARS