From 1622ddc8045eb675010b40b6abf39fdb0e33e20d Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 26 Nov 2014 09:03:34 -0800 Subject: [PATCH 1/2] add a travis ci script --- README.md | 2 +- lib/src/model_utils.dart | 1 - lib/src/utils.dart | 1 - tool/packages | 1 + tool/travis.sh | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 37 insertions(+), 3 deletions(-) create mode 120000 tool/packages create mode 100755 tool/travis.sh 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/packages b/tool/packages new file mode 120000 index 0000000000..a16c405015 --- /dev/null +++ b/tool/packages @@ -0,0 +1 @@ +../packages \ No newline at end of file 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 From 613127ff3f08902597b2cbba13961e6f2cd8ff0f Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 26 Nov 2014 09:06:12 -0800 Subject: [PATCH 2/2] update the .gitignore file --- .gitignore | 3 +-- tool/packages | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 120000 tool/packages 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/tool/packages b/tool/packages deleted file mode 120000 index a16c405015..0000000000 --- a/tool/packages +++ /dev/null @@ -1 +0,0 @@ -../packages \ No newline at end of file