Skip to content

Commit e5257aa

Browse files
committed
Not passing env vars? Try conditional
1 parent 999bca5 commit e5257aa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
python: 3.8 # this works for Linux but is ignored on macOS or Windows
99
env:
1010
- TRAVIS_RUN_LINTER=true
11+
- TRAVIS_RUN_INTEGRATION_TESTS=true
1112
- TRAVIS_GENERATE_DOCS=true
12-
- TRAVIS_TEST_OPTS=--doctest --codeblock
1313
- TRAVIS_PYTHON_IMPLEMENTATION="cpython"
1414
services: docker
1515
before_script:
@@ -72,7 +72,11 @@ script:
7272
- if [[ "$TRAVIS_RUN_LINTER" == "true" ]]; then
7373
invoke lint;
7474
fi
75-
- invoke test $TRAVIS_TEST_OPTS
75+
- if [[ "$TRAVIS_RUN_INTEGRATION_TESTS" == "true" ]]; then
76+
invoke test --doctest --codeblock;
77+
else
78+
invoke test;
79+
fi;
7680

7781
after_success:
7882
- if [[ "$TRAVIS_GENERATE_DOCS" == "true" ]]; then

0 commit comments

Comments
 (0)