Details |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 14217 |
anikendra |
1 |
#!/bin/bash -x
|
|
|
2 |
|
|
|
3 |
if [ "$TEST_SUITE" == "unit" ]; then
|
|
|
4 |
./node_modules/.bin/karma start --single-run --browsers PhantomJS
|
|
|
5 |
elif [ "$TRAVIS_SECURE_ENV_VARS" == "true" -a "$TEST_SUITE" == "integration" ]; then
|
|
|
6 |
static -p 8888 &
|
|
|
7 |
sleep 3
|
|
|
8 |
# integration tests are flaky, don't let them fail the build
|
|
|
9 |
./node_modules/mocha/bin/mocha --harmony -R spec ./test/integration/test.js || true
|
|
|
10 |
else
|
|
|
11 |
echo "Not running any tests"
|
|
|
12 |
fi
|