Skip to content

Commit f693675

Browse files
committed
Merge pull request #55 from torbjoernk/feature/travis
start using Travis -- nice work, thanks!
2 parents afdb174 + 9ec0225 commit f693675

File tree

5 files changed

+43
-10
lines changed

5 files changed

+43
-10
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

REQUIREMENTS.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-r requirements-optional.txt
2+
nose >= 1.2

requirements-optional.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-r requirements.txt
2+
scipy >=0.15
3+
matplotlib >=1.3

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy >=1.9
2+
future >=0.14

0 commit comments

Comments
 (0)