-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jama5262/setup-travis
Set up Travis and coveralls
- Loading branch information
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: dart | ||
dart: | ||
- stable | ||
install: | ||
- gem install coveralls-lcov | ||
before_script: | ||
- chmod +x ./tools/travis.sh | ||
script: ./tools/travis.sh | ||
after_success: | ||
- coveralls-lcov coverage/lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ environment: | |
dev_dependencies: | ||
pedantic: ^1.7.0 | ||
test: ^1.6.0 | ||
test_coverage: ^0.3.0+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Run pub get to fetch packages. | ||
pub get | ||
|
||
# Verify that the libraries are error and warning-free. | ||
echo "Running dartanalyzer..." | ||
dartanalyzer lib test example | ||
|
||
# Verify that dartfmt has been run. | ||
echo "Checking dartfmt..." | ||
if [[ $(dartfmt -n --set-exit-if-changed lib test example) ]]; then | ||
echo "Failed dartfmt check" | ||
exit 1 | ||
|
||
fi | ||
|
||
# Run the tests. | ||
echo "Running tests..." | ||
pub run test_coverage --no-badge |