From: Michael Jeanson Date: Wed, 18 May 2016 22:27:01 +0000 (-0400) Subject: lttng-analyses: checkout sources in a subdirectory X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=673cb703fac1feb1c5854cc0eeb0f4c2ba88f3dc;p=lttng-ci.git lttng-analyses: checkout sources in a subdirectory Signed-off-by: Michael Jeanson --- diff --git a/jobs/lttng-analyses.yaml b/jobs/lttng-analyses.yaml index 75737c2..bb9306c 100644 --- a/jobs/lttng-analyses.yaml +++ b/jobs/lttng-analyses.yaml @@ -26,6 +26,7 @@ browser-url: https://github.com/{github_user}/{github_name} branches: - origin/{version} + basedir: src/lttng-analyses triggers: - pollscm: diff --git a/scripts/lttng-analyses/build.sh b/scripts/lttng-analyses/build.sh index d0509fb..f5b412e 100755 --- a/scripts/lttng-analyses/build.sh +++ b/scripts/lttng-analyses/build.sh @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +SRCDIR="src/lttng-analyses" + PYTHON3="python3" P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])") @@ -22,6 +24,7 @@ BABELTRACE_DIR=$WORKSPACE/deps/babeltrace/build export LD_LIBRARY_PATH="$BABELTRACE_DIR/lib" export PYTHONPATH="$BABELTRACE_DIR/lib/python${P3_VERSION}/dist-packages/" +export PATH="$PATH:$BABELTRACE_DIR/bin" PYENV_HOME=$WORKSPACE/.pyenv/ @@ -37,4 +40,8 @@ set +u . $PYENV_HOME/bin/activate set -u -pip install . +cd "$SRCDIR" + +$PYTHON3 setup.py build +$PYTHON3 setup.py test +$PYTHON3 setup.py install diff --git a/scripts/lttng-analyses/pylint.sh b/scripts/lttng-analyses/pylint.sh index 72f47ca..f95960f 100755 --- a/scripts/lttng-analyses/pylint.sh +++ b/scripts/lttng-analyses/pylint.sh @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +SRCDIR="src/lttng-analyses" + PYTHON3="python3" P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])") @@ -40,6 +42,8 @@ set -u pip install --quiet pylint pip install --quiet pep8 -pep8 lttnganalyses | tee pep8.out +cd "$SRCDIR" + +pep8 lttnganalyses | tee $WORKSPACE/pep8.out -pylint -f parseable --ignore="_version.py" lttnganalyses | tee pylint.out +pylint -f parseable --ignore="_version.py" lttnganalyses | tee $WORKSPACE/pylint.out