From 1b29d53bc7cc594d122e2eae0c1be4a738d35eef Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 9 Aug 2016 16:11:51 -0400 Subject: [PATCH] jjb: fix lttng-analyses tox build Signed-off-by: Michael Jeanson --- scripts/lttng-analyses/build.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/lttng-analyses/build.sh b/scripts/lttng-analyses/build.sh index 4462456..ef19043 100755 --- a/scripts/lttng-analyses/build.sh +++ b/scripts/lttng-analyses/build.sh @@ -39,18 +39,18 @@ fi # Create virtualenv and install necessary packages virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME" -set +u +set +ux . "$PYENV_HOME/bin/activate" -set -u +set -ux pip install --quiet codecov pip install --quiet tox +cd "$SRCDIR" + # Hack for path too long in venv wrapper shebang -TMPDIR=$(mktemp -d) -cd "$TMPDIR" -ln -s "$WORKSPACE/$SRCDIR" src -cd src +TOXWORKDIR=$(mktemp -d) +export TOXWORKDIR # Run base test suites and long regression test suite for suite in py3 noutf8 pep8 longregression; do @@ -60,3 +60,6 @@ for suite in py3 noutf8 pep8 longregression; do done unset TOXENV +rm -rf "$TOXWORKDIR" + +# EOF -- 2.34.1