diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/karma-jasmine/integration-tests.sh')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/karma-jasmine/integration-tests.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/karma-jasmine/integration-tests.sh b/vnfmarket/src/main/webapp/vnfmarket/node_modules/karma-jasmine/integration-tests.sh new file mode 100644 index 00000000..505e72f7 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/karma-jasmine/integration-tests.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +PKG_FILE="$PWD/$(npm pack)" +CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) + +git clone https://github.com/karma-runner/integration-tests.git --depth 1 + +cd integration-tests + +if [ "$CURRENT_BRANCH" = "jasmine-1_0" ]; then + ./run.sh -g "jasmine$" $PKG_FILE +else + ./run.sh -g "jasmine_2" $PKG_FILE +fi |