mirror of
https://github.com/SELinuxProject/setools
synced 2025-01-30 03:32:42 +00:00
Add lint to CI. Step back to single coverage test, on Python 3.3.
I decided kamino's original single-coverage tox.ini was better.
This commit is contained in:
parent
f3ca479a27
commit
ffd32d38f8
10
.travis.yml
10
.travis.yml
@ -5,10 +5,12 @@
|
||||
language: python
|
||||
|
||||
env:
|
||||
- TOX_ENV=py27-coverage
|
||||
- TOX_ENV=py33-coverage
|
||||
- TOX_ENV=py34-coverage
|
||||
- TOX_ENV=py27
|
||||
- TOX_ENV=py33
|
||||
- TOX_ENV=py34
|
||||
- TOX_ENV=pep8
|
||||
- TOX_ENV=coverage
|
||||
- TOX_ENV=lint
|
||||
|
||||
before_install:
|
||||
- lsb_release -a
|
||||
@ -36,7 +38,7 @@ before_install:
|
||||
- sed 's/ln -sf --relative /ln -sf /' -i selinux-src/libsepol/src/Makefile
|
||||
- sed 's/ln -sf --relative /ln -sf /' -i selinux-src/libselinux/src/Makefile
|
||||
|
||||
# Drop sepolicy to break setools dependence (sepolicy isn't used anyway)
|
||||
# Drop sepolicy to break setools3 dependence (sepolicy isn't used here anyway)
|
||||
- sed -i -e 's/sepolicy//' selinux-src/policycoreutils/Makefile
|
||||
|
||||
# Compile and install SELinux toolchain
|
||||
|
22
tox.ini
22
tox.ini
@ -9,19 +9,9 @@ max-line-length = 100
|
||||
[testenv:pep8]
|
||||
deps = pep8
|
||||
commands = pep8 --version
|
||||
pep8 setools/ tests/ seinfo seinfoflow sedta sesearch --statistics -v
|
||||
pep8 setools/ tests/ seinfo seinfoflow sedta sesearch --statistics
|
||||
|
||||
[testenv:py27-coverage]
|
||||
basepython = python2.7
|
||||
deps = networkx==1.9
|
||||
mock
|
||||
coverage
|
||||
commands = coverage --version
|
||||
coverage erase
|
||||
coverage run setup.py test
|
||||
coverage report
|
||||
|
||||
[testenv:py33-coverage]
|
||||
[testenv:coverage]
|
||||
basepython = python3.3
|
||||
deps = networkx==1.9
|
||||
coverage
|
||||
@ -30,14 +20,6 @@ commands = coverage --version
|
||||
coverage run setup.py test
|
||||
coverage report
|
||||
|
||||
[testenv:py34-coverage]
|
||||
basepython = python3.4
|
||||
deps = networkx==1.9
|
||||
coverage
|
||||
commands = coverage --version
|
||||
coverage erase
|
||||
coverage run setup.py test
|
||||
coverage report
|
||||
[testenv:lint]
|
||||
deps = pylint
|
||||
networkx==1.9
|
||||
|
Loading…
Reference in New Issue
Block a user