Skip to content

Commit

Permalink
Travis ci config (#16)
Browse files Browse the repository at this point in the history
* Add flake8 and coverage to travis-ci

* Add flake8 and coverage to travis-ci

* Add flake8 and coverage to travis-ci

* Add flake8 and coverage to travis-ci

* Add flake8 and coverage to travis-ci
  • Loading branch information
fundakol committed Nov 28, 2021
1 parent 6b5fe60 commit dfdf7de
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ python:
- "3.8"
- "3.9"
# - "3.10" # TODO: uncomment when supported by travis
matrix:
include:
- { python: 3.9, env: TOXENV=flake8 }
- { python: 3.9, env: TOXENV=coverage }
install:
- pip install tox-travis
- pip install tox-travis codecov
services: docker
script:
- tox
after_success:
- codecov
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![PyPi](https://img.shields.io/pypi/v/pytest-jira-xray.png)](https://pypi.python.org/pypi/pytest-jira-xray)
[![Build Status](https://travis-ci.com/fundakol/pytest-jira-xray.svg?branch=master)](https://travis-ci.com/github/fundakol/pytest-jira-xray)
[![codecov](https://codecov.io/gh/fundakol/pytest-jira-xray/branch/master/graph/badge.svg)](https://codecov.io/gh/fundakol/pytest-jira-xray)

pytest-jira-xray is a plugin for pytest that uploads test results to JIRA XRAY.

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ flake8==4.0.0
Flask==1.1.1
mypy==0.910
pytest==6.2.2
pytest-cov==3.0.0
requests==2.25.1
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,py38,py39,flake8,mypy
envlist = py36,py37,py38,py39,flake8,mypy,coverage

[testenv]
deps = -rrequirements-dev.txt
Expand All @@ -14,3 +14,9 @@ commands = flake8 src tests
basepython = python3.9
deps = -rrequirements-dev.txt
commands = mypy src tests

[testenv:coverage]
basepython = python3.9
usedevelop = True
deps = -rrequirements-dev.txt
commands = pytest --cov=src tests

0 comments on commit dfdf7de

Please sign in to comment.