Skip to content

Commit

Permalink
Issue #942. Add conditional test running to Travis, based on access t…
Browse files Browse the repository at this point in the history
…o TRAVIS_SECURE_ENV_VARS.
  • Loading branch information
Mike Taylor committed Mar 5, 2016
1 parent 0a49ffb commit a2da771
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ cache:
- $HOME/.pip-cache/
- $HOME/.selenium/

# limit the depth of the commits we clone
git:
depth: 5

addons:
firefox: "44.0"

Expand Down Expand Up @@ -45,6 +49,9 @@ before_script:
- grunt

# now run the tests!
# if this is a pull request from a fork, TRAVIS_SECURE_ENV_VARS will be false, so
# just run the non-auth tests. otherwise, run everything.
script:
- nosetests
- node_modules/.bin/intern-runner reporters=console config=tests/intern user="$USER" pw="$PW"
- [ "${TRAVIS_SECURE_ENV_VARS}" = "false" ] && node_modules/.bin/intern-runner reporters=console config=tests/intern functionalSuites=tests/functional-nonauth
- [ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] && node_modules/.bin/intern-runner reporters=console config=tests/intern user="$USER" pw="$PW"

0 comments on commit a2da771

Please sign in to comment.