mirror of
https://github.com/SELinuxProject/setools
synced 2025-01-30 19:51:39 +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
|
language: python
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TOX_ENV=py27-coverage
|
- TOX_ENV=py27
|
||||||
- TOX_ENV=py33-coverage
|
- TOX_ENV=py33
|
||||||
- TOX_ENV=py34-coverage
|
- TOX_ENV=py34
|
||||||
- TOX_ENV=pep8
|
- TOX_ENV=pep8
|
||||||
|
- TOX_ENV=coverage
|
||||||
|
- TOX_ENV=lint
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- lsb_release -a
|
- 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/libsepol/src/Makefile
|
||||||
- sed 's/ln -sf --relative /ln -sf /' -i selinux-src/libselinux/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
|
- sed -i -e 's/sepolicy//' selinux-src/policycoreutils/Makefile
|
||||||
|
|
||||||
# Compile and install SELinux toolchain
|
# Compile and install SELinux toolchain
|
||||||
|
22
tox.ini
22
tox.ini
@ -9,19 +9,9 @@ max-line-length = 100
|
|||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = pep8
|
deps = pep8
|
||||||
commands = pep8 --version
|
commands = pep8 --version
|
||||||
pep8 setools/ tests/ seinfo seinfoflow sedta sesearch --statistics -v
|
pep8 setools/ tests/ seinfo seinfoflow sedta sesearch --statistics
|
||||||
|
|
||||||
[testenv:py27-coverage]
|
[testenv: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]
|
|
||||||
basepython = python3.3
|
basepython = python3.3
|
||||||
deps = networkx==1.9
|
deps = networkx==1.9
|
||||||
coverage
|
coverage
|
||||||
@ -30,14 +20,6 @@ commands = coverage --version
|
|||||||
coverage run setup.py test
|
coverage run setup.py test
|
||||||
coverage report
|
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]
|
[testenv:lint]
|
||||||
deps = pylint
|
deps = pylint
|
||||||
networkx==1.9
|
networkx==1.9
|
||||||
|
Loading…
Reference in New Issue
Block a user