Skip to content

Commit 9e46156

Browse files
authored
Merge pull request #67 from whalebot-helmsman/travis-wapiti
Travis wapiti
2 parents 7ddd317 + ad17fbf commit 9e46156

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ branches:
66
only:
77
- master
88
- /^\d\.\d+$/
9-
9+
1010
matrix:
1111
include:
1212
- python: 2.7
@@ -29,6 +29,8 @@ addons:
2929

3030
install:
3131
- pip install -U pip tox codecov
32+
- git clone https://github.com/Jekub/Wapiti /tmp/wapiti
33+
- pushd /tmp/wapiti && make && sudo make install && popd
3234

3335
script: tox
3436

@@ -37,4 +39,4 @@ after_success:
3739

3840
cache:
3941
directories:
40-
- $HOME/.cache/pip
42+
- $HOME/.cache/pip

webstruct/tests/test_wapiti.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from webstruct.wapiti import WapitiCRF
2+
from webstruct.utils import run_command
3+
4+
def test_is_wapiti_binary_present():
5+
run_command(['which', WapitiCRF.WAPITI_CMD])
6+
7+

0 commit comments

Comments
 (0)