forked from kdavies4/natu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (30 loc) · 1.06 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
language: python
python:
- '2.7'
- '3.4'
# Use conda since Travis CI doesn't ahve good support for scipy in Python 3.
before_install:
- sudo apt-get update
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh;
sudo apt-get install python-qt4;
else
wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh;
sudo apt-get install python-qt4;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda info -a # Useful for debugging issues with conda
- conda create -n test-environment setuptools numpy
# 7/2/14: python=3.4 doesn't work, but conda currently defaults to 3.4.1
# anyway if version 3 is installed (see conda info above) and 2.7.7 otherwise.
- source activate test-environment
install:
- python setup.py install
script:
- python setup.py test
after_success:
- coveralls