From: Michael Jeanson Date: Tue, 9 Aug 2016 17:03:18 +0000 (-0400) Subject: jjb: use tox to run tests X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=33a40e3d2edd0a4da54847a745a8113e34b474f3;p=lttng-ci.git jjb: use tox to run tests Signed-off-by: Michael Jeanson --- diff --git a/.gitignore b/.gitignore index 64cf77f..9890752 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -test/ +/test/ +/etc/jenkins_jobs.ini +/.tox .venv*/ -etc/jenkins_jobs.ini diff --git a/.travis.yml b/.travis.yml index 3237e7f..01fc18a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ +sudo: false language: python python: - "2.7" -install: - - pip install jenkins-job-builder -script: jenkins-jobs test jobs/ -o test/ + - "3.5" + - "pypi" +install: pip install tox-travis +script: tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..975075c --- /dev/null +++ b/tox.ini @@ -0,0 +1,9 @@ +[tox] +minversion = 1.9 +skipsdist = True +toxworkdir = {env:TOXWORKDIR:.tox} + +[testenv] +skip_install = True +deps = jenkins-job-builder +commands = jenkins-jobs test jobs/ -o test/