Skip to content

Commit

Permalink
Merge pull request #67 from whalebot-helmsman/travis-wapiti
Browse files Browse the repository at this point in the history
Travis wapiti
  • Loading branch information
kmike authored Aug 28, 2018
2 parents 35c1438 + 541286d commit 17c8254
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branches:
only:
- master
- /^\d\.\d+$/

matrix:
include:
- python: 2.7
Expand All @@ -29,6 +29,8 @@ addons:

install:
- pip install -U pip tox codecov
- git clone https://github.com/Jekub/Wapiti /tmp/wapiti
- pushd /tmp/wapiti && make && sudo make install && popd

script: tox

Expand All @@ -37,4 +39,4 @@ after_success:

cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pip
7 changes: 7 additions & 0 deletions webstruct/tests/test_wapiti.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from webstruct.wapiti import WapitiCRF
from webstruct.utils import run_command

def test_is_wapiti_binary_present():
run_command(['which', WapitiCRF.WAPITI_CMD])


0 comments on commit 17c8254

Please sign in to comment.