Skip to content

Commit

Permalink
Cleanup for v2.0.0 (#49)
Browse files Browse the repository at this point in the history
* Cleanup for v2.0.0

* CHANGELOG
  • Loading branch information
matanlurey committed Jan 3, 2017
1 parent 4008cff commit 9832b94
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 2.0.0

* Removed `mockito_no_mirrors.dart`

## 2.0.0-dev

* Remove export of `spy` and any `dart:mirrors` based API from
Expand Down
18 changes: 0 additions & 18 deletions lib/mockito_no_mirrors.dart

This file was deleted.

28 changes: 24 additions & 4 deletions tool/travis.sh
Expand Up @@ -14,10 +14,30 @@

#!/bin/bash

# Fast fail the script on failures.
set -e
# Make sure dartfmt is run on everything
# This assumes you have dart_style as a dev_dependency
echo "Checking dartfmt..."
NEEDS_DARTFMT="$(find lib test -name "*.dart" | xargs dartfmt -n)"
if [[ ${NEEDS_DARTFMT} != "" ]]
then
echo "FAILED"
echo "${NEEDS_DARTFMT}"
exit 1
fi
echo "PASSED"

# Make sure we pass the analyzer
echo "Checking dartanalyzer..."
FAILS_ANALYZER="$(find lib test -name "*.dart" | xargs dartanalyzer --options .analysis_options)"
if [[ $FAILS_ANALYZER == *"[error]"* ]]
then
echo "FAILED"
echo "${FAILS_ANALYZER}"
exit 1
fi
echo "PASSED"

# Verify that the libraries are error free.
find . -maxdepth 2 -name *.dart | xargs dartanalyzer --fatal-warnings
# Fail on anything that fails going forward.
set -e

pub run test

0 comments on commit 9832b94

Please sign in to comment.