diff --git a/.gitignore b/.gitignore index ba7025c8dc..ac00b03002 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # Don’t commit the following directories created by pub. build/ -packages/ -bin/packages +packages .buildlog .project .pub diff --git a/README.md b/README.md index 51ba4da84c..66153cd08b 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ Please file reports on the [GitHub Issue Tracker][issues]. See the LICENSE file for information. -[issues]: https://github.com/dart-lang/dartdoc/issues +[issues]: https://github.com/dart-lang/dartdoc/issues diff --git a/lib/src/model_utils.dart b/lib/src/model_utils.dart index 78eafb976c..7f7169f69a 100644 --- a/lib/src/model_utils.dart +++ b/lib/src/model_utils.dart @@ -87,4 +87,3 @@ List getAllSupertypes(ClassElement c) { //return _getAllSupertypes(t, []); } - diff --git a/lib/src/utils.dart b/lib/src/utils.dart index 537059c0b1..bb889b77ad 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -155,4 +155,3 @@ String _replaceAll(String str, List matchChars, {String htmlEntity, var } return buf.toString(); } - diff --git a/tool/travis.sh b/tool/travis.sh new file mode 100755 index 0000000000..7a21b5cb51 --- /dev/null +++ b/tool/travis.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Copyright (c) 2014, Google Inc. 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. + +# Fast fail the script on failures. +set -e + +# Get the Dart SDK (only for travis-ci.org; otherwise, assume that Dart is already available). +if [ "$TRAVIS" = "true" ]; then + DART_DIST=dartsdk-linux-x64-release.zip + curl http://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/$DART_DIST > $DART_DIST + unzip $DART_DIST > /dev/null + rm $DART_DIST + export DART_SDK="$PWD/dart-sdk" + export PATH="$DART_SDK/bin:$PATH" +fi + +# Display installed versions. +dart --version + +# Get our packages. +pub get + +# Verify that the libraries are error free. +dartanalyzer --fatal-warnings \ + bin/dartdoc.dart \ + lib/dartdoc.dart +# TODO: +# test/all.dart + +# Run the tests. +# TODO: +#dart test/all.dart