aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-04-13 16:56:28 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-04-13 17:24:09 +0200
commitd02aa9919eb04974d096fcd54891723482f8d056 (patch)
tree35d7fbbe208bdc58e3243e8761f056deb8a1d847
parent56fbecbcd1f9892cc1e40764b0e9aeef61135c96 (diff)
Run tox in .travis-ciopnfv-8.1.0
It installs python3 via ppa to run unit tests vs py36. It completes the OPNFV gates which can't verify them. Change-Id: I58e74e0272eb501ff5ffdb1eca1459a6c549fc17 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit ea76aa99439bf2152b8cadd41e88594bf3b1314e)
-rw-r--r--.travis.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 11b9f9f7..30405071 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,17 @@
sudo: required
language: generic
services: docker
+dist: xenial
+addons:
+ apt:
+ packages:
+ - libssl1.0.0
before_script:
+ - sudo add-apt-repository -y ppa:jonathonf/python-3.6
+ - sudo apt-get update
+ - sudo apt-get install python3.6 python3.6-dev
+ - 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)
@@ -11,6 +20,8 @@ before_script:
jobs:
include:
+ - stage: run unit tests
+ script: tox -e pep8,pylint,yamllint,ansiblelint,bashate,py27,py36
- stage: build functest-kubernetes-core image
script: sudo -E bash build.sh
env: