68d2121fd0
This runs tests against sdk versions of packages instead of whatever random version we have in pubspec.yaml. Travis may be unhappy with the lack of a pubspec.yaml. Here's the try: https://travis-ci.org/dart-lang/sdk/builds/163270204 R=jmesserly@google.com, rnystrom@google.com Review URL: https://codereview.chromium.org/2371113004 .
18 lines
838 B
Bash
Executable File
18 lines
838 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Switch to the root directory of dev_compiler
|
|
cd $( dirname "${BASH_SOURCE[0]}" )/..
|
|
|
|
# Run formatter in rewrite mode on all files that are part of the project.
|
|
# This checks that all files are commited first to git, so no state is lost.
|
|
# The formatter ignores:
|
|
# * local files that have never been added to git,
|
|
# * subdirectories of test/ and tool/, unless explicitly added. Those dirs
|
|
# contain a lot of generated or external source we should not reformat.
|
|
(files=`git ls-files 'bin/*.dart' 'lib/*.dart' test/*.dart test/checker/*.dart \
|
|
tool/*.dart | grep -v lib/src/js_ast/`; git status -s $files | grep -q . \
|
|
&& echo "Did not run the formatter, please commit edited files first." \
|
|
|| (echo "Running dart formatter" ; \
|
|
dart ../../third_party/pkg_tested/dart_style/bin/format.dart -w $files))
|