Run unit tests as travis-ci job 31/58631/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 17 Jun 2018 08:31:15 +0000 (10:31 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 17 Jun 2018 11:38:41 +0000 (13:38 +0200)
tox doesn't run perm and py35:
  - travis-ci doesn't set the classical umask
  - ubuntu 14.04 doesn't provide any python 3.5 package

Change-Id: I72ba109b183f079a833a4bab4ab4853d4870ce49
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
.travis.yml

index 16cc817..ea13625 100644 (file)
@@ -5,12 +5,15 @@ language: generic
 
 before_script:
   - sudo apt-get -y install qemu-user-static
+  - 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 && sudo -E make && sudo -E make install)
 
 jobs:
   include:
+    - stage: run unit tests
+      script: tox -e docs,pep8,pylint,yamllint,bashate,py27,cover
     - stage: build functest-core images
       script: sudo -E bash build.sh
       env: