Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add travis and code coverage settings
BUG= R=nweiz@google.com Review URL: https://codereview.chromium.org//966353002
- Loading branch information
Showing
5 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
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,8 @@ | ||
language: dart | ||
sudo: false | ||
dart: | ||
- stable | ||
- dev | ||
before_install: | ||
- pub global activate dart_coveralls | ||
script: ./tool/travis.sh |
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
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
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,25 @@ | ||
import 'package:unittest/unittest.dart'; | ||
|
||
import 'cascade_test.dart' as cascade; | ||
import 'create_middleware_test.dart' as create_middleware; | ||
import 'hijack_test.dart' as hijack; | ||
import 'log_middleware_test.dart' as log_middleware; | ||
import 'message_change_test.dart' as message_change; | ||
import 'message_test.dart' as message; | ||
import 'pipeline_test.dart' as pipeline; | ||
import 'request_test.dart' as request; | ||
import 'response_test.dart' as response; | ||
import 'shelf_io_test.dart' as shelf_io; | ||
|
||
void main() { | ||
group('cascade', cascade.main); | ||
group('create_middleware', create_middleware.main); | ||
group('hijack', hijack.main); | ||
group('log_middleware', log_middleware.main); | ||
group('message_change', message_change.main); | ||
group('message', message.main); | ||
group('pipeline', pipeline.main); | ||
group('request', request.main); | ||
group('response', response.main); | ||
group('shelf_io', shelf_io.main); | ||
} |
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,15 @@ | ||
#!/bin/bash | ||
|
||
# Fast fail the script on failures. | ||
set -e | ||
|
||
dart --checked test/test_all.dart | ||
|
||
# Install dart_coveralls; gather and send coverage data. | ||
if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then | ||
pub global run dart_coveralls report \ | ||
--token $COVERALLS_TOKEN \ | ||
--retry 2 \ | ||
--exclude-test-files \ | ||
test/test_all.dart | ||
fi |