This switches to the official Dart docker Image for code analyzing and dartdocs
Also this fixes loading Dart from the
official repository in the test job.
This commit is contained in:
Christian Pauly 2021-06-08 11:40:04 +02:00
parent 0e1e72d3ab
commit d308fac43c
1 changed files with 8 additions and 9 deletions

View File

@ -44,9 +44,9 @@ coverage_without_olm:
dependencies: [] dependencies: []
script: script:
- apt update - apt update
- apt install -y curl gnupg2 git sqlite3 libsqlite3-dev - apt install -y curl gnupg2 git sqlite3 libsqlite3-dev wget
- curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - - sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
- curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list - sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
- apt update - apt update
- apt install -y dart - apt install -y dart
- ln -s /usr/lib/dart/bin/pub /usr/bin/ - ln -s /usr/lib/dart/bin/pub /usr/bin/
@ -85,20 +85,19 @@ code_analyze:
tags: tags:
- docker - docker
stage: coverage stage: coverage
image: registry.gitlab.com/famedly/containers/flutter-dockerimages:stable image: google/dart
dependencies: [] dependencies: []
script: script:
- flutter format lib/ test/ test_driver/ --set-exit-if-changed - dart pub get
- flutter analyze - dart format lib/ test/ test_driver/ --set-exit-if-changed
- dart analyze
build_api_doc: build_api_doc:
tags: tags:
- docker - docker
stage: builddocs stage: builddocs
image: registry.gitlab.com/famedly/containers/flutter-dockerimages:stable image: google/dart
script: script:
- flutter pub global activate dartdoc
- export PATH="$PATH":"/opt/flutter/flutter/.pub-cache/bin"
- dartdoc --exclude "dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui" - dartdoc --exclude "dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui"
artifacts: artifacts:
paths: paths: