forked from mmp2/megaman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 1.01 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
# sudo false implies containerized builds
sudo: false
python:
- 2.7
- 3.4
- 3.5
env:
global:
# Directory where tests are run from
- TEST_DIR=/tmp/megaman
- CONDA_CHANNEL="conda-forge"
- CONDA_DEPS="pip nose coverage cython scikit-learn flann h5py"
- PIP_DEPS="coveralls"
matrix:
- EXTRA_DEPS="pyflann pyamg"
- EXTRA_DEPS=""
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -f -p $MINICONDA
- conda config --set always_yes yes
- conda update conda
- conda info -a
- conda create -n testenv python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install -c $CONDA_CHANNEL $CONDA_DEPS $EXTRA_DEPS
- travis_retry pip install $PIP_DEPS
install:
- python setup.py install
script:
- mkdir -p $TEST_DIR
- cd $TEST_DIR && nosetests -v --with-coverage --cover-package=megaman megaman
after_success:
- coveralls