Skip to content

Commit

Permalink
add git-lint-diff travis checks
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed Mar 23, 2017
1 parent 138bdfd commit 7c2b637
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@ language: python
python:
- "2.7"
- "3.4"
- "3.5"
addons:
apt:
packages:
- gcc
- libgeoip-dev
install: "pip install -r requirements.txt"
script: nosetests
- libcrack2-dev
install:
- "pip install tox"
- "pip install -r requirements.txt"
script:
- nosetests
- tox
env:
- TOXENV=py27-flake8
- TOXENV=py27
- TOXENV=py34
41 changes: 41 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[tox]
skipsdist = True
envlist =
py27
py34
py27-flake8

[testenv]
commands = nosetests
deps =
nose
-rrequirements.txt

[testenv:py27]
basepython = python2.7
deps =
{[testenv]deps}

[testenv:py34]
basepython = python3.4
deps =
{[testenv]deps}


[testenv:py27-flake8]
basepython = python2.7
deps =
flake8
git+https://github.com/russell/git-lint-diff.git#egg=git-lint-diff
commands = git-lint-diff --linter flake8 -- flake8

[testenv:py34-flake8]
basepython = python3.4
deps =
flake8
git+https://github.com/russell/git-lint-diff.git#egg=git-lint-diff
commands = git-lint-diff --linter flake8 -- flake8

[flake8]
builtins = _
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*migrations*

0 comments on commit 7c2b637

Please sign in to comment.