diff options
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | setup.cfg | 3 | ||||
-rw-r--r-- | tox.ini | 14 |
3 files changed, 23 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index f49e780..1924463 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,11 +53,17 @@ matrix: - python: "2.7" env: TOXENV=pypi-readme + - python: "2.7" + env: TOXENV=flake8 + - python: "2.7" + env: TOXENV=pyroma + # Let the cryptography master builds fail because they might be triggered by # cryptography changes beyond our control. # Also allow OS X and 0.9.8 to fail at the moment while we fix these new # build configurations. + # Also allow lint to fail while we fix existing lint. allow_failures: - language: generic os: osx @@ -68,6 +74,7 @@ matrix: - env: TOXENV=py34-cryptographyMaster - env: TOXENV=pypy-cryptographyMaster - env: OPENSSL=0.9.8 TOXENV=py27 + - env: TOXENV=flake8 install: - | @@ -11,3 +11,6 @@ build-requires = lynx openssl-devel python-devel python-sphinx group = Development/Libraries build_script = rpm/build_script doc-files = doc/_build/html + +[flake8] +ignore = E303 @@ -1,5 +1,5 @@ [tox] -envlist = {pypy,py26,py27,py33,py34}{,-cryptographyMaster},pypi-readme,check-manifest +envlist = {pypy,py26,py27,py33,py34}{,-cryptographyMaster},pypi-readme,check-manifest,flake8,pyroma [testenv] whitelist_externals = @@ -20,6 +20,18 @@ commands = coverage run --branch --source=OpenSSL setup.py test coverage report -m +[testenv:flake8] +deps = + flake8 +commands = + flake8 OpenSSL + +[testenv:pyroma] +deps = + pyroma>=1.6 # <1.6 had bogus return values. +commands = + pyroma -d . + [testenv:pypi-readme] deps = readme |