Skip to content
Permalink
Browse files

tests: run tests under python3.5, python3.6 and python3.7

Signed-off-by: Florian Scherf <f.scherf@pengutronix.de>
  • Loading branch information...
fscherf committed Feb 17, 2019
1 parent ccd1b23 commit d80f2b36872ddb72136cb2e5cf9dc9491c0acd3c
Showing with 35 additions and 3 deletions.
  1. +17 −1 .travis.yml
  2. +4 −0 Makefile
  3. +14 −2 tox.ini
@@ -1,10 +1,26 @@
os: linux
dist: xenial
language: python

stages:
- lint
- test

jobs:
include:
- stage: lint
env: TOXENV=lint

python:
- 3.7
- 3.6
- 3.5

install:
- pip install tox "setuptools>=36.3"
- pip install "setuptools>=36.3" tox codecov

script:
- tox

after_success:
- codecov
@@ -17,6 +17,10 @@ test: env
. $(PYTHON_VENV)/bin/activate && \
tox

ci-test: env
. $(PYTHON_VENV)/bin/activate && \
JENKINS_URL=1 tox

edit: env
. $(PYTHON_VENV)/bin/activate && \
$$EDITOR
16 tox.ini
@@ -1,16 +1,28 @@
[tox]
envlist=py35
skip_missing_interpreters=True
envlist=python


[tox:jenkins]
envlist=lint,py35,py36,py37


[testenv]
ignore_errors=True

deps =
pytest
pytest-cov
flake8

commands =
pytest --cov={envsitepackagesdir}/flamingo


[testenv:lint]
deps =
flake8

commands =
flake8 flamingo tests


0 comments on commit d80f2b3

Please sign in to comment.
You can’t perform that action at this time.