aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-04-13 13:24:17 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-04-13 15:14:01 +0200
commit790e27e03a22f894b24f9e900ab1e77745cc5621 (patch)
treef313f9ba4a578d4c6c69c1bd240800b4ed4f1b76
parent6c585df69f92f92c4e8061daba891d506ec0c524 (diff)
Run tox in .travis-ci
It installs python3 via ppa to run unit tests vs py36. It completes the OPNFV gates which can't verify them. Change-Id: I6942f12ec7daf50e62173290e55df87af9e35d5a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit be261aeeef79961a2cb1ac018a7df86e20ee7de4)
-rw-r--r--.travis.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 0cd98bbb..207aa703 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,10 @@ language: generic
before_script:
- sudo apt-get -y install qemu-user-static
+ - sudo add-apt-repository -y ppa:jonathonf/python-3.6
+ - sudo apt-get update
+ - sudo apt-get install python3.6
+ - sudo pip install tox
- sudo -E docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
- (cd .. && git clone https://github.com/estesp/manifest-tool)
- (cd ../manifest-tool && git checkout v0.9.0)
@@ -12,6 +16,9 @@ before_script:
jobs:
include:
+ - stage: run unit tests
+ script: >
+ tox -e docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,py36,cover
- stage: build xtesting images
script: sudo -E bash build.sh
env: