-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
.travis.yml
44 lines (34 loc) · 1.26 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: python
dist: precise
python:
- "3.6"
before_install:
- export TZ=Europe/Brussels
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
- conda install --yes numpy scipy
- pip install --quiet pytest pytest-cov pytest-xdist chardet
install:
- python setup.py install --quiet
- pip freeze
# Install and compile libsvm and liblinear
- sudo apt-get install -y build-essential
- git clone https://github.com/cjlin1/libsvm
- cd libsvm; make lib; sudo cp libsvm.so.2 /lib; sudo ln -s /lib/libsvm.so.2 /lib/libsvm.so; cd ..
- git clone https://github.com/cjlin1/liblinear
- cd liblinear; make lib; sudo cp liblinear.so.3 /lib; sudo ln -s /lib/liblinear.so.3 /lib/liblinear.so; cd ..
script:
- pytest --cov=pattern
after_script:
- pip install --quiet coveralls
- coveralls
branches:
only:
- development
notifications:
email: false
# You can connect to MySQL/MariaDB using the username "travis" or "root" and a blank password.
services:
- mysql