Skip to content

Commit

Permalink
Run the analyzer on CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultz committed Apr 30, 2015
1 parent 29afebb commit f2c52b3
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Don’t commit the following directories created by pub.
build/
packages
.pub/

# Or the files created by dart2js.
*.dart.js
Expand Down
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ env:
dart:
- stable
- dev
after_success:
install:
- pub global activate dart_coveralls
- pub global run dart_coveralls:dart_coveralls report --exclude-test-files --token $COVERALLS_TOKEN ./test/all_tests.dart
- pub global activate tuneup
- pub global activate grinder
- pub install
script:
- grind
after_success:
- dart_coveralls report --exclude-test-files --token $COVERALLS_TOKEN ./test/all_tests.dart
1 change: 0 additions & 1 deletion example/auto_complete/index.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:async';
import 'dart:convert';
import 'dart:html';
import 'package:frappe/frappe.dart';
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ dependencies:
stream_transformers: ^0.3.0
dev_dependencies:
browser: ^0.10.0
grinder: ^0.7.0
guinness: ^0.1.6
2 changes: 0 additions & 2 deletions test/property_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ import 'shared/merge.dart';
import 'shared/scan.dart';
import 'shared/skip.dart';
import 'shared/skip_while.dart';
import 'shared/skip_until.dart';
import 'shared/take.dart';
import 'shared/take_while.dart';
import 'shared/take_until.dart';
import 'shared/when.dart';
import 'shared/where.dart';
import 'shared/zip.dart';
import 'shared/return_types.dart';
Expand Down
1 change: 0 additions & 1 deletion test/shared/return_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:frappe/frappe.dart';
import 'package:guinness/guinness.dart';

void testReturnTypes(Type expectedType, Reactable provider()) => describe("return types", () {
StreamController source;
Reactable reactable;

beforeEach(() {
Expand Down
17 changes: 17 additions & 0 deletions tool/grind.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import 'package:grinder/grinder.dart';

main(args) => grind(args);

@Task("Analyzes the package for errors")
analyze() {
new PubApp.global('tuneup').run(['check']);
}

@Task()
test() => Tests.runCliTests(testFile: "all_tests.dart");

@DefaultTask()
@Depends(analyze, test)
build() {

}

0 comments on commit f2c52b3

Please sign in to comment.