File tree 6 files changed +35
-5
lines changed
6 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ language: python
2
2
python :
3
3
- " 2.7"
4
4
- " 3.6"
5
+ - " 3.7-dev"
5
6
install : make install-ci
6
7
script : make test-ci
8
+ after_success :
9
+ - make coverage-ci-codecov
7
10
notifications :
8
11
email : false
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ test-tox:
94
94
tox
95
95
96
96
.PHONY : test-ci
97
- test-ci : test-tox
97
+ test-ci : test-tox coverage-ci
98
98
99
99
.PHONY : testimport
100
100
testimport :
@@ -104,6 +104,27 @@ testimport:
104
104
echo " OK"
105
105
106
106
107
+ # =========================================
108
+ # coverage (codecov)
109
+ # --------------------------------------
110
+
111
+ .PHONY : coverage
112
+ coverage : clean env3
113
+ coverage run ./$(NAME ) /tests
114
+
115
+ .PHONY : coverage-codecov
116
+ coverage-codecov : coverage
117
+ bash <( curl -s https://codecov.io/bash)
118
+
119
+ .PHONY : coverage-ci
120
+ coverage-ci :
121
+ coverage run ./$(NAME ) /tests
122
+
123
+ .PHONY : coverage-ci-codecov
124
+ coverage-ci-codecov :
125
+ bash <( curl -s https://codecov.io/bash)
126
+
127
+
107
128
# =========================================
108
129
# environment (pyenv)
109
130
# --------------------------------------
Original file line number Diff line number Diff line change 1
1
2
- # Config2 [ ![ PyPI version] ( https://badge.fury.io/py/config2.svg )] ( https://badge.fury.io/py/config2 ) [ ![ Build Status] ( https://travis-ci.com/grimen/python-config2.svg?branch=master )] ( https://travis-ci.com/grimen/python-config2 )
2
+ # Config2 [ ![ PyPI version] ( https://badge.fury.io/py/config2.svg )] ( https://badge.fury.io/py/config2 ) [ ![ Build Status] ( https://travis-ci.com/grimen/python-config2.svg?branch=master )] ( https://travis-ci.com/grimen/python-config2 ) [ ![ Coverage Status ] ( https://codecov.io/gh/grimen/python-config2/branch/master/graph/badge.svg )] ( https://codecov.io/gh/grimen/python-config2 )
3
3
4
4
* Python environment configuration simplified.*
5
5
Original file line number Diff line number Diff line change
1
+ ignore :
2
+ - " */tests/*"
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ six >= 1.11.0
8
8
9
9
colour-runner >= 0.0.5
10
10
deepdiff >= 3.3.0
11
- pygments >= 2.2.0
12
11
tox >= 3.0.0
12
+ coverage >= 4.5.2
13
+ codecov >= 2.0.15
Original file line number Diff line number Diff line change @@ -4,5 +4,8 @@ envlist = py27, py36
4
4
skip_missing_interpreters = true
5
5
6
6
[testenv]
7
- commands = python ./config2/tests
8
- deps = -r requirements.txt
7
+ commands = coverage run ./config2/tests
8
+ commands_post = codecov -e TOXENV
9
+ deps =
10
+ -r requirements.txt
11
+ passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
You can’t perform that action at this time.
0 commit comments