forked from statsmodels/statsmodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 1.76 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
36
37
38
39
40
41
42
43
# Adapted from M. Brett's .yaml file for nipy:
# https://github.com/nipy/nipy/blob/master/.travis.yml
#
# We pretend to be erlang because we can't use the python support in
# travis-ci; it uses virtualenvs, they do not have numpy, scipy, matplotlib,
# and it is impractical to build them
language: erlang
notifications:
email:
- statsmodels-commits@googlegroups.com
env:
# Enable python 2 and python 3 builds. Python3.2 available in Ubuntu 12.04.
- PYTHON=python PYSUF=''
- PYTHON=python3 PYSUF=3
install:
- sudo apt-get update
- sudo apt-get install $PYTHON-dev
- sudo apt-get install $PYTHON-numpy
- sudo apt-get install $PYTHON-scipy
- sudo apt-get install $PYTHON-setuptools
- sudo apt-get install $PYTHON-nose
# Cython needs manual install under Python 3
- if [ "${PYSUF}" == "3" ]; then
wget http://cython.org/release/Cython-0.17.1.tar.gz ;
tar xfvz Cython-0.17.1.tar.gz ;
cd Cython-0.17.1 ;
sudo python3 setup.py install ;
cd .. ;
else
sudo apt-get install cython ;
fi
- sudo easy_install$PYSUF -U pandas
- sudo easy_install$PYSUF -U patsy
script:
- sudo $PYTHON setup.py install
# Ubuntu 12.04 installs statsmodels under the wrong path for Python 3
- if [ "${PYSUF}" == "3" ]; then
sudo mv /usr/local/lib/python3.2/dist-packages/statsmodels-*/statsmodels /usr/local/lib/python3.2/dist-packages/statsmodels ;
sudo rm -rf /usr/lib/python3.2/dist-packages/statsmodels-* ;
fi
# For some reason, Python 3 will try to work with the build directory. Get out of folder to avoid breakage
- cd ../
- sudo $PYTHON -c "import statsmodels as sm; a=sm.test(); import sys; sys.exit((len(a.failures)+len(a.errors))>0)"