diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index e9bd0e1e..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,58 +0,0 @@ -# https://hub.docker.com/_/dart -image: dart:latest - -variables: - PUB_VARS: "--platform vm --timeout 30s --concurrency=6 --test-randomize-ordering-seed=random --reporter=json" - -# 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" - - dart pub get --no-precompile - - dart pub global activate junitreport - - dart pub global activate coverage - - dart pub global activate -sgit https://github.com/Workiva/lsif_indexer - - apt -qq update - - apt -qq install -y lcov python3 python3-distutils # unfortunately necessary to convert lcov reports to cobertura - - curl -o lcov_cobertura.py https://raw.githubusercontent.com/eriwen/lcov-to-cobertura-xml/master/lcov_cobertura/lcov_cobertura.py - -style_check: - stage: test - script: - - dart format -o none --set-exit-if-changed . - -lint: - stage: test - script: - - dart analyze . - -test: - stage: test - script: - - dart pub run test $PUB_VARS --coverage=./coverage > report.jsonl - - dart pub global run junitreport:tojunit --input report.jsonl --output report.xml - - dart pub global run coverage:format_coverage --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage - - python3 lcov_cobertura.py ./coverage/lcov.info -o ./coverage.xml - - genhtml coverage/lcov.info - coverage: '/lines\.*: \d+\.\d+\%/' - artifacts: - when: always - reports: - junit: - - report.xml - coverage_report: - coverage_format: cobertura - path: coverage.xml - -code_navigation: - stage: test - allow_failure: true - script: - - dart pub global run lsif_indexer -o dump.lsif - artifacts: - reports: - lsif: dump.lsif