File: tox.ini

package info (click to toggle)
python-pgq 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 252 kB
  • sloc: python: 2,559; makefile: 13
file content (37 lines) | stat: -rw-r--r-- 890 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

[tox]
envlist = lint2,lint3,py27,py35

[package]
name = pgq
deps =
	psycopg2
	../python-skytools

[testenv]
changedir = {envsitepackagesdir}
deps =  nose
	coverage
	{[package]deps}
commands =
	coverage erase
	coverage run --rcfile "{toxinidir}/.coveragerc" --include "{[package]name}/*" \
		-m nose -P --with-doctest --all-modules {[package]name} "{toxinidir}/tests"
	coverage html -d "{toxinidir}/tmp/cover-{envname}" \
		--title "Coverage for {envname}" \
		--rcfile "{toxinidir}/.coveragerc"
	coverage report --rcfile "{toxinidir}/.coveragerc"


[testenv:lint2]
basepython = python2.7
deps =  prospector[with_everything]
	{[package]deps}
commands = prospector --profile {toxinidir}/.prospector.yaml {[package]name}

[testenv:lint3]
basepython = python3.5
deps =  prospector[with_everything]
	{[package]deps}
commands = prospector --profile {toxinidir}/.prospector.yaml {[package]name}