~pythonxy/pythonxy-upstream/python-pandas

« back to all changes in this revision

Viewing changes to tox_prll.sh

  • Committer: Phillip Cloud
  • Date: 2014-06-07 21:18:01 UTC
  • mto: This revision was merged to the branch mainline in revision 6473.
  • Revision ID: git-v1:795d183e028f20a83e74d050ef7b85c0b259a122
CLN/TST/BLD: clean up tox files [ci skip]

Show diffs side-by-side

added added

removed removed

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