File tree 4 files changed +30
-21
lines changed 4 files changed +30
-21
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ matrix:
62
62
if : type = cron OR commit_message =~ /\[scipy-dev\]/
63
63
64
64
install : source build_tools/travis/install.sh
65
- script : bash build_tools/travis/test_script.sh
65
+ script :
66
+ - bash build_tools/travis/test_script.sh
67
+ - bash build_tools/travis/test_docs.sh
68
+ - bash build_tools/travis/test_pytest_soft_dependency.sh
66
69
after_success : source build_tools/travis/after_success.sh
67
70
notifications :
68
71
webhooks :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ if [[ " $SKIP_TESTS " != " true" ]]; then
6
+ set -x
7
+ make test-doc
8
+ fi
Original file line number Diff line number Diff line change
1
+ # #!/bin/bash
2
+
3
+ set -e
4
+
5
+ if [[ " $CHECK_PYTEST_SOFT_DEPENDENCY " == " true" ]]; then
6
+ conda remove -y py pytest || pip uninstall -y py pytest
7
+ if [[ " $COVERAGE " == " true" ]]; then
8
+ # Need to append the coverage to the existing .coverage generated by
9
+ # running the tests
10
+ CMD=" coverage run --append"
11
+ else
12
+ CMD=" python"
13
+ fi
14
+ # .coverage from running the tests is in TEST_DIR
15
+ cd $TEST_DIR
16
+ $CMD -m sklearn.utils.tests.test_estimator_checks
17
+ cd $OLDPWD
18
+ fi
Original file line number Diff line number Diff line change @@ -46,11 +46,6 @@ run_tests() {
46
46
set -x # print executed commands to the terminal
47
47
48
48
$TEST_CMD sklearn
49
-
50
- # Going back to git checkout folder needed to test documentation
51
- cd $OLDPWD
52
-
53
- make test-doc
54
49
}
55
50
56
51
if [[ " $RUN_FLAKE8 " == " true" ]]; then
60
55
if [[ " $SKIP_TESTS " != " true" ]]; then
61
56
run_tests
62
57
fi
63
-
64
- if [[ " $CHECK_PYTEST_SOFT_DEPENDENCY " == " true" ]]; then
65
- conda remove -y py pytest || pip uninstall -y py pytest
66
- if [[ " $COVERAGE " == " true" ]]; then
67
- # Need to append the coverage to the existing .coverage generated by
68
- # running the tests
69
- CMD=" coverage run --append"
70
- else
71
- CMD=" python"
72
- fi
73
- # .coverage from running the tests is in TEST_DIR
74
- cd $TEST_DIR
75
- $CMD -m sklearn.utils.tests.test_estimator_checks
76
- cd $OLDPWD
77
- fi
You can’t perform that action at this time.
0 commit comments