Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Unified Diff: packages/quiver/tool/travis.sh

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/quiver/test/time/clock_test.dart ('k') | packages/quiver_iterables/.gitattributes » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « packages/quiver/test/time/clock_test.dart ('k') | packages/quiver_iterables/.gitattributes » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698