Files
gerrit/polygerrit-ui/app/polylint_test.sh
Dmitrii Filippov e629c9b0ba Use node modules in wct tests
Update wct tests to use node modules instead of bower components.

Change-Id: I1533279c9bc92b56b2de29070e6b2cc2137e7b06
2020-02-12 15:42:36 +00:00

14 lines
387 B
Bash
Executable File

#!/bin/bash
set -ex
DIR=$(pwd)
ln -s $RUNFILES_DIR/ui_npm/node_modules $TEST_TMPDIR/node_modules
cp $2 $TEST_TMPDIR/polymer.json
cp -R -L polygerrit-ui/app/polylint-updated-links/polygerrit-ui/app/* $TEST_TMPDIR
#Can't use --root with polymer.json - see https://github.com/Polymer/tools/issues/2616
#Change current directory to the root folder
cd $TEST_TMPDIR/
$DIR/$1 lint --verbose