| Index: packages/quiver/tool/travis.sh
|
| diff --git a/packages/quiver/tool/travis.sh b/packages/quiver/tool/travis.sh
|
| index ecf6577dd03663947d5d72c0f4bee4f326384007..d7d809cdce2296e93afa855fa5c8d77768078da7 100755
|
| --- a/packages/quiver/tool/travis.sh
|
| +++ b/packages/quiver/tool/travis.sh
|
| @@ -13,6 +13,16 @@ libs=$(find lib -maxdepth 1 -type f -name '*.dart')
|
| testing_libs=$(find lib/testing -maxdepth 1 -type f -name '*.dart')
|
| dartanalyzer $DARTANALYZER_FLAGS $libs $testing_libs test/all_tests.dart
|
|
|
| +# Verify that dartfmt has been run
|
| +if [[ "$TRAVIS_DART_VERSION" == "stable" ]]; then
|
| + # Only test on stable to avoid CI failure due to diffs between stable and dev.
|
| + echo "Checking dartfmt..."
|
| + if [[ $(dartfmt -n --set-exit-if-changed lib/ test/) ]]; then
|
| + echo "Failed dartfmt check: run dartfmt -w lib/ test/"
|
| + exit 1
|
| + fi
|
| +fi
|
| +
|
| # Run the tests.
|
| echo "Running tests..."
|
| pub run test:test
|
|
|