@@ -102,51 +102,50 @@ diff_pylint_report: pylint_report.txt
102
102
diff-quality --violations=pylint pylint_report.txt
103
103
104
104
.coverage : $(PYSOURCES )
105
- python- coverage run --branch --source=${MODULE} tests/test_examples .py
106
- python- coverage run --append --branch --source=${MODULE} \
105
+ coverage run --branch --source=${MODULE} setup .py test
106
+ coverage run --append --branch --source=${MODULE} \
107
107
-m schema_salad.main \
108
108
--print-jsonld-context schema_salad/metaschema/metaschema.yml \
109
109
> /dev/null
110
- python- coverage run --append --branch --source=${MODULE} \
110
+ coverage run --append --branch --source=${MODULE} \
111
111
-m schema_salad.main \
112
112
--print-rdfs schema_salad/metaschema/metaschema.yml \
113
113
> /dev/null
114
- python- coverage run --append --branch --source=${MODULE} \
114
+ coverage run --append --branch --source=${MODULE} \
115
115
-m schema_salad.main \
116
116
--print-avro schema_salad/metaschema/metaschema.yml \
117
117
> /dev/null
118
- python- coverage run --append --branch --source=${MODULE} \
118
+ coverage run --append --branch --source=${MODULE} \
119
119
-m schema_salad.main \
120
120
--print-rdf schema_salad/metaschema/metaschema.yml \
121
121
> /dev/null
122
- python- coverage run --append --branch --source=${MODULE} \
122
+ coverage run --append --branch --source=${MODULE} \
123
123
-m schema_salad.main \
124
124
--print-pre schema_salad/metaschema/metaschema.yml \
125
125
> /dev/null
126
- python- coverage run --append --branch --source=${MODULE} \
126
+ coverage run --append --branch --source=${MODULE} \
127
127
-m schema_salad.main \
128
128
--print-index schema_salad/metaschema/metaschema.yml \
129
129
> /dev/null
130
- python- coverage run --append --branch --source=${MODULE} \
130
+ coverage run --append --branch --source=${MODULE} \
131
131
-m schema_salad.main \
132
132
--print-metadata schema_salad/metaschema/metaschema.yml \
133
133
> /dev/null
134
- python- coverage run --append --branch --source=${MODULE} \
134
+ coverage run --append --branch --source=${MODULE} \
135
135
-m schema_salad.makedoc schema_salad/metaschema/metaschema.yml \
136
136
> /dev/null
137
137
138
-
139
138
coverage.xml : .coverage
140
- python- coverage xml
139
+ coverage xml
141
140
142
141
coverage.html : htmlcov/index.html
143
142
144
143
htmlcov/index.html : .coverage
145
- python- coverage html
144
+ coverage html
146
145
@echo Test coverage of the Python code is now in htmlcov/index.html
147
146
148
147
coverage-report : .coverage
149
- python- coverage report
148
+ coverage report
150
149
151
150
diff-cover : coverage-gcovr.xml coverage.xml
152
151
diff-cover coverage-gcovr.xml coverage.xml
@@ -174,4 +173,10 @@ mypy: ${PYSOURCES}
174
173
MYPYPATH=typeshed/2.7 mypy --py2 schema_salad
175
174
# MYPYPATH=typeshed/2.7 mypy --py2 --disallow-untyped-calls schema_salad
176
175
176
+ jenkins :
177
+ if ! test -d env ; then virtualenv env ; fi
178
+ . env/bin/activate ; \
179
+ ${MAKE} install-dep coverage.html coverage.xml mypy pep257_report.txt \
180
+ sloccount.sc pep8_report.txt pylint_report.txt
181
+
177
182
FORCE :
0 commit comments