Skip to content

Commit 239992d

Browse files
committed
add travis-ci file
1 parent 0a4e3e7 commit 239992d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
- "3.3"
5+
install:
6+
- sudo apt-get update
7+
# We do this conditionally because it saves us some downloading if the
8+
# version is the same.
9+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
10+
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
11+
else
12+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
13+
fi
14+
- bash miniconda.sh -b -p $HOME/miniconda
15+
- export PATH="$HOME/miniconda/bin:$PATH"
16+
- hash -r
17+
- conda config --set always_yes yes --set changeps1 no
18+
- conda update -q conda
19+
# Useful for debugging any issues with conda
20+
- conda info -a
21+
22+
# Replace dep1 dep2 ... with your dependencies
23+
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy nose
24+
- source activate test-environment
25+
- make test
26+
script:
27+
- nosetests -v

0 commit comments

Comments
 (0)