Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit f82e934

Browse files
authored
Merge pull request #369 from ariddell/feature/travis-ci-tests-split
CI: split tests up, avoid CI timeout
2 parents 4683bc1 + 21e1a8b commit f82e934

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ compiler:
1313
- clang
1414
- gcc
1515
env:
16-
- TRAVIS_PYTHON_VERSION=2.7
17-
- TRAVIS_PYTHON_VERSION=3.3
18-
- TRAVIS_PYTHON_VERSION=3.4
19-
- TRAVIS_PYTHON_VERSION=3.5
20-
- TRAVIS_PYTHON_VERSION=3.6
16+
- TRAVIS_PYTHON_VERSION=2.7 TESTS_EXCLUDE_RE='^test_[a-p].*\.py'
17+
- TRAVIS_PYTHON_VERSION=3.4 TESTS_EXCLUDE_RE='^test_[a-p].*\.py'
18+
- TRAVIS_PYTHON_VERSION=3.5 TESTS_EXCLUDE_RE='^test_[a-p].*\.py'
19+
- TRAVIS_PYTHON_VERSION=3.6 TESTS_EXCLUDE_RE='^test_[a-p].*\.py'
20+
- TRAVIS_PYTHON_VERSION=2.7 TESTS_EXCLUDE_RE='^test_[^a-p].*\.py'
21+
- TRAVIS_PYTHON_VERSION=3.4 TESTS_EXCLUDE_RE='^test_[^a-p].*\.py'
22+
- TRAVIS_PYTHON_VERSION=3.5 TESTS_EXCLUDE_RE='^test_[^a-p].*\.py'
23+
- TRAVIS_PYTHON_VERSION=3.6 TESTS_EXCLUDE_RE='^test_[^a-p].*\.py'
2124
notifications:
2225
email:
2326
recipients:
2427
- stan-buildbot@googlegroups.com
2528
on_success: change
2629
on_failure: always
2730
install: source continuous_integration/install.sh
28-
script: bash continuous_integration/test_script.sh
31+
script: bash continuous_integration/test_script.sh --exclude="$TESTS_EXCLUDE_RE"

continuous_integration/test_script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ SKLEARN_SKIP_NETWORK_TESTS=1
2020
export PYSTAN_SKIP_PLOT_TESTS=1
2121

2222
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
23-
DISPLAY=:99.0 JOBLIB_MULTIPROCESSING=0 nosetests -w /tmp pystan
23+
DISPLAY=:99.0 JOBLIB_MULTIPROCESSING=0 nosetests -w /tmp pystan $@
2424
fi
2525

2626
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
2727
# skip DISPLAY setting and hope for the best
28-
JOBLIB_MULTIPROCESSING=0 nosetests -w /tmp pystan
28+
JOBLIB_MULTIPROCESSING=0 nosetests -w /tmp pystan $@
2929
fi

0 commit comments

Comments
 (0)