forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox_prll.sh
executable file
·28 lines (23 loc) · 712 Bytes
/
tox_prll.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
#
# tox has an undocumented (as of 1.4.2) config option called "sdistsrc"
# which can make a run use a pre-prepared sdist file.
# we prepare the sdist once , then launch the tox runs in parallel using it.
#
# currently (tox 1.4.2) We have to skip sdist generation when running in parallel
# or we get a race.
#
ENVS=$(cat tox.ini | grep envlist | tr "," " " | cut -d " " -f 3-)
TOX_INI_PAR="tox_prll.ini"
if [ x"$1" == x"fast" ]; then
scripts/use_build_cache.py
fi;
echo "[Creating distfile]"
tox --sdistonly
export DISTFILE="$(find .tox/dist -type f )"
echo -e "[Starting tests]\n"
for e in $ENVS; do
echo "[launching tox for $e]"
tox -c "$TOX_INI_PAR" -e "$e" &
done
wait