Commit 40adf6cf authored by Sam Saccone's avatar Sam Saccone

Only run browser tests if we have secure vars

Hopefully will be resolved by
https://github.com/travis-ci/travis-core/pull/418
parent 7e29afac
#!/bin/bash #!/bin/bash
npm i && \ args="$@"
eval "npm test -- $@"
run_tests ()
{
npm i && \
eval "npm test -- $args"
}
if [ "$TRAVIS_PULL_REQUEST" == "true" ] && [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]
then
run_tests
elif [ "$TRAVIS_PULL_REQUEST" == "true" ] && [ "$TRAVIS_SECURE_ENV_VARS" == "false" ]
then
exit 0
else
run_tests
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment