Skip to content

Commit 9ec0225

Browse files
committed
[Travis] using Travis for CI
Signed-off-by: Torbjörn Klatt <[email protected]>
1 parent edbc20c commit 9ec0225

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# use 'new'ish container-based infrastructure
2+
sudo: false
3+
dist: trusty
4+
5+
language: python
6+
7+
python:
8+
- "2.7"
9+
- "3.5"
10+
11+
# this anaconda setup is taken from http://stackoverflow.com/a/30175390
12+
before_install:
13+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
14+
export PYTHON_VERSION=2;
15+
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O $HOME/miniconda2.sh;
16+
fi
17+
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
18+
export PYTHON_VERSION=3;
19+
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda3.sh;
20+
fi
21+
- chmod +x $HOME/miniconda${PYTHON_VERSION}.sh
22+
- $HOME/miniconda${PYTHON_VERSION}.sh -b;
23+
- export PATH=/home/travis/miniconda${PYTHON_VERSION}/bin:$PATH
24+
- conda update --yes conda
25+
26+
install:
27+
# this line needs to be updated to match the requirements.txt files
28+
# the conda installer isn't able to process PIP's requirements.txt files
29+
- conda install --yes python=${TRAVIS_PYTHON_VERSION} numpy future scipy matplotlib nose
30+
- conda list
31+
32+
script:
33+
- which nosetests
34+
- nosetests
35+
36+
# TODO: generate documentation

0 commit comments

Comments
 (0)