diff --git a/.travis.yml b/.travis.yml index 9c5b953..5c0203b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ branches: only: - master - /^\d\.\d+$/ - + matrix: include: - python: 2.7 @@ -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 @@ -37,4 +39,4 @@ after_success: cache: directories: - - $HOME/.cache/pip \ No newline at end of file + - $HOME/.cache/pip diff --git a/webstruct/tests/test_wapiti.py b/webstruct/tests/test_wapiti.py new file mode 100644 index 0000000..8beab62 --- /dev/null +++ b/webstruct/tests/test_wapiti.py @@ -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]) + +