aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Quigley <bryan.quigley@canonical.com>2017-02-23 22:01:05 -0500
committerAdam Stokes <battlemidget@users.noreply.github.com>2017-11-29 14:07:48 -0500
commitc4866ffa89e3ea007a0c8556aaebd319ca346764 (patch)
treee1d8bdbbdc77b6ca3f260e68717a44af85362d5c
parent30285352cad7b393c67a7c7c64a6fce902190bef (diff)
downloadsos-c4866ffa89e3ea007a0c8556aaebd319ca346764.tar.gz
[travis] Update travis with sudo and new python
Bumps requirement for CI to work on Python 3.5, 3.6, 3.7-dev. To enable sudo we bump the release to trusty. Dropped the depth to 5 as we aren't doing git commands. Running --help and -l at the moment (but that should have found issue 938) Also running with --batch to test basic running. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <battlemidget@users.noreply.github.com>
-rw-r--r--.travis.yml17
1 files changed, 12 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index df06b8a1..579a63f1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,14 @@
language: python
python:
- - 2.7
- - 3.4
- - 3.5
+ - "2.7"
+ - "3.4"
+ - "3.5"
+ - "3.6"
+ - "3.7-dev"
- "nightly"
matrix:
allow_failures:
- - python: 3.5
- python: "nightly"
-sudo: false
notifications:
email:
sos-devel@redhat.com
@@ -16,9 +16,16 @@ notifications:
channels:
- "us.freenode.net#sosreport"
on_success: change
+dist: trusty
+sudo: true
install:
- "pip install six nose nose-cov pep8"
- "python setup.py install"
script:
- "pep8 sos"
- "nosetests -v --with-cover --cover-package=sos --cover-html"
+ - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --help"
+ - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport -l --config-file=sos.conf"
+ - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport -n kernel --batch --config-file=sos.conf | tee batch_output"
+git:
+ depth: 5