-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
34 lines (29 loc) · 1.08 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
language: python
python:
- 2.7
- 3.4
# no virtualenv
#virtualenv:
# system_site_packages: false
# Setup anaconda
before_install:
# we need blas.h
- sudo apt-get update
- sudo apt-get install -qq libblas-dev
- 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
- chmod +x miniconda.sh
- ./miniconda.sh -b
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PATH=/home/travis/miniconda/bin:$PATH; else export PATH=/home/travis/miniconda3/bin:$PATH; fi
- conda update --yes conda
# Install packages
install:
- conda create --quiet --yes -n buildenv python=$TRAVIS_PYTHON_VERSION
- source activate buildenv
- conda install --yes numpy scipy matplotlib cython nose setuptools coverage
- pip install python-coveralls
- python setup.py install
# Run the tests
script: nosetests --with-coverage --cover-package=deltasigma deltasigma
# Calculate coverage
after_success:
- coveralls