8000 TST : make number of concurrent procs an ENV · sigma-random/matplotlib@8599784 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8599784

Browse files
committed
TST : make number of concurrent procs an ENV
1 parent fd0dbbf commit 8599784

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ env:
2727
- BUILD_DOCS=false
2828
- TEST_ARGS=--no-pep8
2929
- NUMPY=numpy
30+
- NPROC=2
3031

3132
language: python
3233

@@ -69,7 +70,7 @@ script:
6970
# The number of processes is hardcoded, because using too many causes the
7071
# Travis VM to run out of memory (since so many copies of inkscape and
7172
# ghostscript are running at the same time).
72-
- echo Testing using 8 processes
73+
- echo Testing using $NPROC processes
7374
# Generate the font caches in a single process before starting the
7475
# multiple processes
7576
- gcc --version
@@ -79,7 +80,7 @@ script:
7980
export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
8081
mkdir ../tmp_test_dir
8182
cd ../tmp_test_dir
82-
gdb -return-child-result -batch -ex r -ex bt --args python ../matplotlib/tests.py -sv --processes=2 --process-timeout=300 $TEST_ARGS
83+
gdb -return-child-result -batch -ex r -ex bt --args python ../matplotlib/tests.py -sv --processes=$NPROC --process-timeout=300 $TEST_ARGS
8384
else
8485
cd doc
8586
python make.py html --small --warningsaserrors

0 commit comments

Comments
 (0)
0