[CI] Add code analyze job which is allowed to fail

Took 12 minutes
This commit is contained in:
Marcel 2019-06-25 16:30:13 +02:00
parent c3967419e6
commit 4d2cbf8663
4 changed files with 23 additions and 4 deletions

View File

@ -19,6 +19,14 @@ coverage:
- ./scripts/coverage.sh - ./scripts/coverage.sh
- flutter pub pub publish --dry-run - flutter pub pub publish --dry-run
code_analyze:
image: cirrusci/flutter
stage: coverage
dependencies: []
script:
- flutter analyze
allow_failure: true
builddocs: builddocs:
stage: builddocs stage: builddocs
image: cirrusci/flutter image: cirrusci/flutter
@ -28,7 +36,7 @@ builddocs:
paths: paths:
- doc/api/ - doc/api/
only: only:
- master - master
pages: pages:
stage: deploy stage: deploy
@ -41,6 +49,6 @@ pages:
- builddocs - builddocs
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master

9
analysis_options.yaml Normal file
View File

@ -0,0 +1,9 @@
include: package:pedantic/analysis_options.yaml
linter:
rules:
#- camel_case_types
analyzer:
# exclude:
# - path/to/excluded/files/**

View File

@ -292,7 +292,7 @@ packages:
source: hosted source: hosted
version: "1.6.2" version: "1.6.2"
pedantic: pedantic:
dependency: transitive dependency: "direct dev"
description: description:
name: pedantic name: pedantic
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"

View File

@ -30,6 +30,8 @@ dev_dependencies:
build_runner: ^1.5.2 build_runner: ^1.5.2
json_serializable: ^3.0.0 json_serializable: ^3.0.0
pedantic: ^1.5.0 # DO NOT UPDATE AS THIS WOULD CAUSE FLUTTER TO FAIL
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec # following page: https://www.dartlang.org/tools/pub/pubspec