blob: 18ee593c36dfbae1a3e37358a6c9c024157a9c9d [file] [log] [blame]
#!/bin/bash
# Fast fail the script on failures.
set -e
# Verify that the libraries are error free.
dartanalyzer --fatal-warnings \
lib/*.dart \
test/*.dart \
example/**/*.dart
# Verify that all the tests pass.
pub run --checked test -p vm test/all_tests.dart
# Verify the coverage of the tests.
if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then
pub global activate dart_coveralls
pub global run dart_coveralls report \
--token $COVERALLS_TOKEN \
--retry 2 \
--exclude-test-files \
test/all_tests.dart
fi