From be261aeeef79961a2cb1ac018a7df86e20ee7de4 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 13 Apr 2019 13:24:17 +0200 Subject: Run tox in .travis-ci MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1aae11ed..6b6610f0 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: -- cgit 1.2.3-korg