Skip to content

Commit

Permalink
Only run browser tests if we have secure vars
Browse files Browse the repository at this point in the history
Hopefully will be resolved by
travis-ci/travis-core#418
  • Loading branch information
samccone authored and mhoyer committed Dec 5, 2015
1 parent 7b7a041 commit cfc5763
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions browser-tests/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#!/bin/bash

npm i && \
eval "npm test -- $@"
args="$@"

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

0 comments on commit cfc5763

Please sign in to comment.