Skip to content

Commit 48d061f

Browse files
committed
ci: update ci config
1 parent 3e20523 commit 48d061f

4 files changed

Lines changed: 31 additions & 22 deletions

File tree

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ source = os_urlpattern
77
source =
88
src/os_urlpattern
99
.tox/*/lib/python*/site-packages/os_urlpattern
10+
.tox/*/site-packages/os_urlpattern

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@ sudo: false
33
matrix:
44
include:
55
- python: 2.7
6-
env: TOXENV=py27
6+
env: TOXENV=py27,codecov
77
- python: 3.6
8-
env: TOXENV=py36
8+
env: TOXENV=py36,codecov
99
- python: pypy
1010
env: TOXENV=pypy
1111
- python: pypy3
1212
env: TOXENV=pypy3
13-
- env: TOXENV=coverage
1413
install:
15-
- pip install -U pip tox codecov
14+
- pip install -U pip tox
1615
script:
1716
- tox
18-
after_success:
19-
- codecov
2017
deploy:
2118
provider: pypi
2219
user: cfhamlet
2320
password:
2421
secure: eGq3kLUT6D3grZ2ZlCaJ5e/9Ma3HkOLZQDDcMsWUs/zUqpngI/9ibplgbOcxpRxKCgFKn5GFDV9ZsKk00fEfYWpe4WZW2vG6mu3k63oB4FMkUQ4GGoQKcXdR27aNtNhvTzU3VPDgyEpNI5QJmTLJp3Y3fbzcjL3a87kschf6B46MP4Nu3NqWuXZDYIZN6GY8HwD6J3Ii15nl4rCS6phdYdKckyVX8coNQVWkljx+ZtfGMkClsui9BynKBNVwufm3/F1zwWI1UXCrU3v4FxqiCmK2CYSX7tdFcGHaVTf0NqscbPxZgPvM+1tUBbW1M5N5GlUf5f7CxwtFWEqFTlz926gzYrHUaewmjILWDm6OxWAKjuks8lgywQq2twYpd8UVlRywvjfaobGpptoBevuxgr/uzipeckWR0X1SiqUaFnKzuLOnVeZ9I1ixA5zcIR74xnjEOvBnMpeawzZsIidoQcn4PRzbyaR4uDxnYyWB5yW/Q9d1UbAYOe0QyQY6NnZzvkRovkge3H/Wlk+K2P0qSUmmznWSDekdBcm4yr3bZsujgWOKS3c9L/OHH+P3YVAC1x0304xGveWt0cU/sfTPpEi99N+0QOxPQX3CnutFkXZIgR4nsGWnZYnMngrr8eHIfav+Ms20UTYwjsn79vfXc10kkesQtW863GdFXBYfw3c=
2522
on:
2623
tags: true
27-
condition: ${TOXENV} == py27
24+
condition: ${TRAVIS_PYTHON_VERSION} == 2.7

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 cfhamlet
3+
Copyright (c) 2017 Ozzy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

tox.ini

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,36 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py36, pypy, pypy3, coverage
7+
envlist = py{27,36,py,py3}, coverage-report
88

9-
[testenv]
10-
commands =
11-
pytest {posargs}
9+
[base]
1210
deps =
13-
pytest >= 2.10
14-
six
15-
ete3
11+
pytest > 2.10
12+
coverage
13+
pytest-env
1614

17-
[testenv:coverage]
15+
[testenv]
1816
commands =
19-
coverage erase
2017
coverage run -m pytest {posargs}
21-
coverage combine
22-
coverage report
18+
2319
deps =
24-
coverage
25-
pytest >= 2.10
26-
pytest-env
20+
{[base]deps}
2721
six
2822
ete3
23+
24+
[testenv:coverage-report]
25+
deps = coverage
26+
skip_install = true
27+
commands =
28+
coverage combine
29+
coverage report
30+
31+
[testenv:codecov]
32+
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
33+
deps = codecov
34+
skip_install = true
35+
commands =
36+
coverage combine
37+
coverage report
38+
codecov
39+

0 commit comments

Comments
 (0)