Skip to content

Commit 1b515f5

Browse files
authored
Merge pull request #364 from jayvdb/codecov
Re-enable codecov
2 parents 32713a5 + e17cf26 commit 1b515f5

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

.appveyor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
environment:
33
global:
44
PATH: "C:\\Python27\\Scripts\\;%PATH%"
5+
PYTEST_COMMAND: "coverage run -m pytest"
56
matrix:
67
- TOXENV: py27-base
78
- TOXENV: py27-optional
@@ -16,7 +17,7 @@ environment:
1617

1718
install:
1819
- git submodule update --init --recursive
19-
- python -m pip install tox
20+
- python -m pip install tox codecov
2021

2122
build: off
2223

@@ -25,3 +26,6 @@ test_script:
2526

2627
after_test:
2728
- python debug-info.py
29+
30+
on_success:
31+
- codecov

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ sudo: false
1212
cache: pip
1313

1414
env:
15-
- USE_OPTIONAL=true
16-
- USE_OPTIONAL=false
17-
- SIX_VERSION=1.9 USE_OPTIONAL=true
15+
global:
16+
- PYTEST_COMMAND="coverage run -m pytest"
17+
matrix:
18+
- TOXENV=optional
19+
- TOXENV=base
20+
- TOXENV=six19-optional
1821

1922
install:
20-
- ./requirements-install.sh
23+
- pip install tox codecov
2124

2225
script:
23-
- if [[ $TRAVIS_PYTHON_VERSION == pypy* ]]; then py.test; fi
24-
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage run -m pytest; fi
25-
- bash flake8-run.sh
26+
- tox
2627

2728
after_script:
2829
- python debug-info.py
2930

3031
after_success:
31-
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage combine && codecov; fi
32+
- codecov

requirements-test.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
-r requirements.txt
22

3+
tox
4+
35
flake8<3.0
4-
pytest
6+
7+
pytest==3.2.5
8+
coverage
59
pytest-expect>=1.1,<2.0
610
mock

tox.ini

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
[tox]
2-
envlist = {py27,py33,py34,py35,py36,pypy}-{base,optional}
2+
envlist = {py27,py33,py34,py35,py36,pypy}-{base,six19,optional}
33

44
[testenv]
55
deps =
6-
flake8<3.0
7-
pytest
8-
pytest-expect>=1.1,<2.0
9-
mock
10-
base: six
11-
base: webencodings
126
optional: -r{toxinidir}/requirements-optional.txt
7+
-r{toxinidir}/requirements-test.txt
138
doc: Sphinx
149

10+
passenv =
11+
PYTEST_COMMAND
12+
COVERAGE_RUN_OPTIONS
1513
commands =
16-
{envbindir}/py.test {posargs}
14+
six19: pip install six==1.9
15+
{env:PYTEST_COMMAND:{envbindir}/py.test} {posargs}
1716
flake8 {toxinidir}
1817

1918
[testenv:doc]
2019
changedir = doc
2120
commands = sphinx-build -b html . _build
21+
22+
[flake8]
23+
exclude = ./.tox

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy