| OLD | NEW |
| (Empty) | |
| 1 #!/bin/bash |
| 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. |
| 5 |
| 6 # Usage: call directly in the commandline as test/run.sh ensuring that you have |
| 7 # both 'dart' and 'content_shell' in your path. Filter tests by passing a |
| 8 # pattern as an argument to this script. |
| 9 |
| 10 # bail on error |
| 11 set -e |
| 12 |
| 13 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
| 14 # Note: dartanalyzer and some tests needs to be run from the root directory |
| 15 pushd $DIR > /dev/null |
| 16 |
| 17 SHADOWDOM_REMOTE=https://github.com/dart-lang/ShadowDOM.git |
| 18 SHADOWDOM_DIR=../../../third_party/polymer/ShadowDOM |
| 19 |
| 20 echo "*** Syncing $SHADOWDOM_DIR from $SHADOWDOM_REMOTE" |
| 21 if [ -d "$SHADOWDOM_DIR" ]; then |
| 22 pushd $SHADOWDOM_DIR > /dev/null |
| 23 git pull |
| 24 popd |
| 25 else |
| 26 git clone --branch shadowdom_patches $SHADOWDOM_REMOTE $SHADOWDOM_DIR |
| 27 fi |
| 28 |
| 29 echo '*** Installing NPM prerequisites' |
| 30 npm install |
| 31 |
| 32 echo '*** Running grunt' |
| 33 grunt |
| OLD | NEW |