Skip to content

Commit aa35604

Browse files
author
Mike Taylor
committed
Issue #942. Add conditional test running to Travis, based on access to TRAVIS_SECURE_ENV_VARS.
1 parent ad7e5de commit aa35604

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ cache:
1313
- $HOME/.pip-cache/
1414
- $HOME/.selenium/
1515

16+
# limit the depth of the commits we clone
17+
git:
18+
depth: 5
19+
1620
addons:
1721
firefox: "44.0"
1822

@@ -45,6 +49,9 @@ before_script:
4549
- grunt
4650

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

0 commit comments

Comments
 (0)