8000 Travis: tweak test_script.sh (#8444) · scikit-learn/scikit-learn@fcb1403 · GitHub
[go: up one dir, main page]

Skip to content

Commit fcb1403

Browse files
authored
Travis: tweak test_script.sh (#8444)
* --with-coverage was repeated twice and nose-timer options were disabled * make test-doc uses nosetests so skip if if USE_PYTEST is true
1 parent 159da2a commit fcb1403

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build_tools/travis/test_script.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ run_tests() {
2424
if [[ "$USE_PYTEST" == "true" ]]; then
2525
TEST_CMD="pytest --showlocals --pyargs"
2626
else
27-
TEST_CMD="nosetests --with-coverage" # --with-timer --timer-top-n 20"
27+
TEST_CMD="nosetests --with-timer --timer-top-n 20"
2828
fi
2929
# Get into a temp directory to run test from the installed scikit learn and
3030
# check if we do not leave artifacts
@@ -43,9 +43,12 @@ run_tests() {
4343
fi
4444
$TEST_CMD sklearn
4545

46-
# Test doc
47-
cd $OLDPWD
48-
make test-doc
46+
# Test doc (only with nose until we switch completely to pytest)
47+
if [[ "$USE_PYTEST" != "true" ]]; then
48+
# Going back to git checkout folder needed for make test-doc
49+
cd $OLDPWD
50+
make test-doc
51+
fi
4952
}
5053

5154
if [[ "$RUN_FLAKE8" == "true" ]]; then

0 commit comments

Comments
 (0)
0