Skip to content

Commit 964a7dc

Browse files
Adding TravisCI support
1 parent 36b852c commit 964a7dc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
install:
5+
- sudo apt-get update -qq
6+
- if [[ "$TRAVIS_PYTHON_VERSION" == 2.* ]]; then
7+
wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
8+
else
9+
wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-Linux-x86_64.sh -O miniconda.sh;
10+
fi
11+
- bash miniconda.sh -b -p $HOME/miniconda
12+
- export PATH="$HOME/miniconda/bin:$PATH"
13+
- hash -r
14+
- conda config --set always_yes yes --set changeps1 no
15+
- conda update -q conda
16+
# Useful for debugging any issues with conda
17+
- conda info -a
18+
19+
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION scikit-learn
20+
- source activate test-environment
21+
- python setup.py install
22+
script: python setup.py test

0 commit comments

Comments
 (0)