From 763f0e61787056e2516ee7a2686886bf73d5403d Mon Sep 17 00:00:00 2001 From: svalouch Date: Fri, 3 Jan 2020 09:48:12 +0100 Subject: [PATCH] travis: use a matrix to allow for more languages --- .travis.yml | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4fddc96..35f34d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,34 @@ --- -language: python -python: - - '3.6' - - '3.7' -install: - - pip install -r requirements.txt - - pip install -r requirements_develop.txt - - pip install . -script: - - pytest --cov=simplezfs --cov-report=term-missing ${@} - - mypy src/simplezfs - - flake8 +# use a matrix to support multiple languages +matrix: + include: + - language: python + python: '3.6' + install: + - pip install -r requirements.txt + - pip install -r requirements_develop.txt + - pip install . + script: + - pytest --cov=simplezfs --cov-report=term-missing ${@} + - mypy src/simplezfs + - flake8 + - language: python + python: '3.7' + install: + - pip install -r requirements.txt + - pip install -r requirements_develop.txt + - pip install . + script: + - pytest --cov=simplezfs --cov-report=term-missing ${@} + - mypy src/simplezfs + - flake8 + - language: python + python: '3.7' + install: + - pip install -r requirements.txt + - pip install -r requirements_develop.txt + - pip install . + script: + - pytest --cov=simplezfs --cov-report=term-missing ${@} + - mypy src/simplezfs + - flake8