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 committed May 8, 2015
1 parent 7e29afa commit 40adf6c
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 40adf6c

Please sign in to comment.