Merge remote-tracking branch 'origin/4.6' into 4.6-master-2015-08-03-16-00-35
[civicrm-core.git] / tools / scripts / npm / test.sh
1 #!/bin/bash
2 if which node_modules/karma/bin/karma >> /dev/null; then
3 if which nodejs >> /dev/null; then
4 ## Debian
5 nodejs node_modules/karma/bin/karma start
6 else
7 ## Official
8 node node_modules/karma/bin/karma start
9 fi
10 elif which karma >> /dev/null ; then
11 karma start
12 else
13 echo "ERROR: Failed to find karma"
14 exit 1
15 fi