Use Travis tasks (#73)

coverage seems to be broken anyway
diff --git a/.travis.yml b/.travis.yml
index e110e4e..7e82369 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,10 @@
 language: dart
-sudo: false
+
 dart:
   - stable
   - dev
-script: ./tool/travis.sh
+
+dart_task:
+  - test
+  - dartanalyzer
+  - dartfmt
diff --git a/README.md b/README.md
index 8ba24f4..ca319be 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
 [![Build Status](https://travis-ci.org/google/file.dart.svg?branch=master)](https://travis-ci.org/google/file.dart)
-[![Coverage Status](https://coveralls.io/repos/github/google/file.dart/badge.svg?branch=master)](https://coveralls.io/github/google/file.dart?branch=master)
 
 # File
 
diff --git a/tool/test_all_for_coverage.dart b/tool/test_all_for_coverage.dart
deleted file mode 100644
index 19f4459..0000000
--- a/tool/test_all_for_coverage.dart
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) 2017, the Dart project authors.  Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'package:test/test.dart';
-
-import '../test/chroot_test.dart' as chroot_test;
-import '../test/local_test.dart' as local_test;
-import '../test/memory_test.dart' as memory_test;
-
-void main() {
-  group('(chroot_test.dart)', chroot_test.main);
-  group('(local_test.dart)', local_test.main);
-  group('(memory_test.dart)', memory_test.main);
-}
diff --git a/tool/travis.sh b/tool/travis.sh
deleted file mode 100755
index 437894c..0000000
--- a/tool/travis.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# Make sure dartfmt is run on everything
-echo "Checking dartfmt..."
-NEEDS_DARTFMT="$(dartfmt -n lib test tool)"
-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 tool -name "*.dart" | xargs dartanalyzer --options .analysis_options)"
-if [[ $FAILS_ANALYZER == *"[error]"* ]]
-then
-  echo "FAILED"
-  echo "${FAILS_ANALYZER}"
-  exit 1
-fi
-echo "PASSED"
-
-# Fast fail the script on failures.
-set -e
-
-# Run the tests.
-pub run test
-
-# Install dart_coveralls; gather and send coverage data.
-if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then
-  pub global activate dart_coveralls
-  pub global run dart_coveralls report \
-    --retry 2 \
-    --exclude-test-files \
-    tool/test_all_for_coverage.dart
-fi