projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hang_processes.sh: Set WORKSPACE variable when running outside of
[lttng-ci.git]
/
scripts
/
lttng-analyses
/
build.sh
diff --git
a/scripts/lttng-analyses/build.sh
b/scripts/lttng-analyses/build.sh
index 446245625d5076dc38f6255817df910ec4aa4436..8d193d965b3d56b4c9af3d215bf2b78728375a8a 100755
(executable)
--- a/
scripts/lttng-analyses/build.sh
+++ b/
scripts/lttng-analyses/build.sh
@@
-1,4
+1,4
@@
-#!/bin/sh -exu
+#!/bin/
ba
sh -exu
#
# Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
#
#
# Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
#
@@
-26,7
+26,7
@@
P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])")
BABELTRACE_DIR=$WORKSPACE/deps/babeltrace/build
export LD_LIBRARY_PATH="$BABELTRACE_DIR/lib"
BABELTRACE_DIR=$WORKSPACE/deps/babeltrace/build
export LD_LIBRARY_PATH="$BABELTRACE_DIR/lib"
-export PYTHONPATH="$BABELTRACE_DIR/lib/python${P3_VERSION}/
dist
-packages/"
+export PYTHONPATH="$BABELTRACE_DIR/lib/python${P3_VERSION}/
site
-packages/"
export PATH="$PATH:$BABELTRACE_DIR/bin"
PYENV_HOME=$WORKSPACE/.pyenv/
export PATH="$PATH:$BABELTRACE_DIR/bin"
PYENV_HOME=$WORKSPACE/.pyenv/
@@
-39,18
+39,18
@@
fi
# Create virtualenv and install necessary packages
virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME"
# Create virtualenv and install necessary packages
virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME"
-set +u
+set +u
x
. "$PYENV_HOME/bin/activate"
. "$PYENV_HOME/bin/activate"
-set -u
+set -u
x
pip install --quiet codecov
pip install --quiet tox
pip install --quiet codecov
pip install --quiet tox
+cd "$SRCDIR"
+
# Hack for path too long in venv wrapper shebang
# 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
# 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
done
unset TOXENV
+rm -rf "$TOXWORKDIR"
+
+# EOF
This page took
0.023261 seconds
and
4
git commands to generate.