[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
- flutter pub pub publish --dry-run
code_analyze:
image: cirrusci/flutter
stage: coverage
dependencies: []
script:
- flutter analyze
allow_failure: true
builddocs:
stage: builddocs
image: cirrusci/flutter
@ -28,7 +36,7 @@ builddocs:
paths:
- doc/api/
only:
- master
- master
pages:
stage: deploy
@ -41,6 +49,6 @@ pages:
- builddocs
artifacts:
paths:
- public
- public
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
version: "1.6.2"
pedantic:
dependency: transitive
dependency: "direct dev"
description:
name: pedantic
url: "https://pub.dartlang.org"

View File

@ -30,6 +30,8 @@ dev_dependencies:
build_runner: ^1.5.2
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
# following page: https://www.dartlang.org/tools/pub/pubspec