lttng-analyses: checkout sources in a subdirectory
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 18 May 2016 22:27:01 +0000 (18:27 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 20 May 2016 15:46:27 +0000 (11:46 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/lttng-analyses.yaml
scripts/lttng-analyses/build.sh
scripts/lttng-analyses/pylint.sh

index 75737c22af156e01ae967a5be354d900cc27d664..bb9306cfd273f2c2f14e2f998b8e7f7e7511ba03 100644 (file)
@@ -26,6 +26,7 @@
           browser-url: https://github.com/{github_user}/{github_name}
           branches:
             - origin/{version}
+          basedir: src/lttng-analyses
 
     triggers:
       - pollscm:
index d0509fbceceab5375afc0a260031ff92f07519bd..f5b412eac213e8f069e268f61862f0ecea793442 100755 (executable)
@@ -15,6 +15,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+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
index 72f47cab44f929751829c52768e7824403b09a0d..f95960f25ebc1d457f370a5b799552e5853a7b2b 100755 (executable)
@@ -15,6 +15,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+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
This page took 0.024246 seconds and 4 git commands to generate.