-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
27 lines (22 loc) · 987 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
27
# Config file for automatic testing at travis-ci.org
language: python
python:
- "2.7"
- "2.6"
# Set up our virtualenv
before_install:
- 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-3.4.2-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=~/miniconda2/bin:$PATH; else export PATH=~/miniconda3/bin/:$PATH; fi
- conda update --yes conda
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION
- source activate testenv
# install as much as we can via conda
- conda install --yes pip numpy
# Install the rest via pip
- pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script: py.test