File: .travis.yml

package info (click to toggle)
python-pattern 2.6%2Bgit20180818-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 95,148 kB
  • sloc: python: 28,136; xml: 15,085; javascript: 5,810; makefile: 194
file content (44 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download | duplicates (3)
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: xenial

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