-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
26 lines (26 loc) · 941 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
matrix:
include:
- os: osx
language: generic
language: python
python:
- "2.7"
cache:
pip: true
directories:
- bincache
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install vowpal-wabbit; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-get install -qq libboost-all-dev; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo python tests/install_vw.py; fi
- vw --version
install:
- pip install -r requirements.txt
- pip install flake8 commandlineapp
- pip install hanziconv
script:
- python -c 'import vwoptimize, doctest, sys; sys.exit(doctest.testmod(vwoptimize).failed)'
- cd tests && python ./shell-doctest --verbose=2 test && cd ..
- flake8 --max-line-length=1000 --ignore E402,E722 *.py tests/*.py