Browse Source

Use matrix feature from travis CI

pull/372/head
Guillaume Vincent 5 years ago
parent
commit
c688ab0435
2 changed files with 12 additions and 28 deletions
  1. +12
    -7
      .travis.yml
  2. +0
    -21
      cli/tox.ini

+ 12
- 7
.travis.yml View File

@@ -1,7 +1,12 @@
language: python
python:
- "3.6"
services:
- docker
script:
- ./test.sh
matrix:
include:
- language: python
python:
- "3.4"
- "3.7"
before_script:
- cd cli
install:
- pip install -r requirements.txt -r test-requirements.txt
script:
- python -m unittest discover

+ 0
- 21
cli/tox.ini View File

@@ -1,21 +0,0 @@
[tox]
skipsdist = True
envlist = pep8,py2,py3

[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {packages}
commands = pytest -v {posargs: tests}
whitelist_externals = sh
setenv =
PYTHONPATH = {toxinidir}

[testenv:pep8]
commands = flake8 --ignore=E501 --show-source src tests

[testenv:py2]
basepython = python2

[testenv:py3]
basepython = python3

Loading…
Cancel
Save