CI: Fix analysis script

This commit is contained in:
Simon Binder 2020-01-03 16:18:25 +01:00
parent 3ad03d9dc6
commit fc0949ebd1
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 10 additions and 5 deletions

View File

@ -8,6 +8,7 @@
``` ```
selectVariable(:variable AS TEXT): SELECT :variable; selectVariable(:variable AS TEXT): SELECT :variable;
``` ```
- Support for triggers! You can declare them in a `.moor` file and
## 2.2.0 ## 2.2.0

View File

@ -6,3 +6,4 @@ analyzer:
exclude: exclude:
- "example_web/**" - "example_web/**"
- "example/**" - "example/**"
- "**/*.g.dart"

View File

@ -0,0 +1 @@
../analysis_options.yaml

View File

@ -5,22 +5,24 @@ EXIT_CODE=0
cd moor cd moor
echo $(pwd) echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
cd .. cd ..
cd moor_flutter cd moor_flutter
echo $(pwd) echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ || EXIT_CODE=$?
cd .. cd ..
cd moor_generator cd moor_generator
echo $(pwd) echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
cd .. cd ..
cd sqlparser cd sqlparser
echo $(pwd) echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$? dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$? dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
exit $EXIT_CODE