drift/tool/analyze.sh

27 lines
646 B
Bash
Raw Normal View History

2019-07-05 01:47:42 -07:00
#!/usr/bin/env bash
EXIT_CODE=0
cd moor
echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
cd ..
cd moor_flutter
echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
cd ..
cd moor_generator
echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
cd ..
cd sqlparser
echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?