forked from blaze/blaze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (65 loc) · 2.53 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
sudo: false
language: python
matrix:
include:
- python: 2.6
- python: 2.7
env: SPARK_VERSION=1.2
- python: 2.7
env: SPARK_VERSION=1.3
- python: 3.3
- python: 3.4
services:
- mongodb
addons:
postgresql: "9.3"
# Note: conda is not available for anything but python 2.7. So below we try to install
# conda in 2.7 and use conda to install dependencies in the virtualenv for version x.y
install:
# Install conda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
# Install dependencies
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION pytest numpy sqlalchemy pandas h5py pip flask requests pytables cython bcolz xlrd coverage psutil networkx numba
- source activate test-environment
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then conda install unittest2; pip install unicodecsv; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install unicodecsv; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then conda install pyhive spark=$SPARK_VERSION -c blaze -c https://conda.binstar.org/blaze/channel/dev; fi
- pip install psycopg2
# blaze required deps
- pip install git+https://github.com/ContinuumIO/datashape
- pip install git+https://github.com/ContinuumIO/odo
# functional libs
- pip install git+https://github.com/mrocklin/multipledispatch
- pip install git+https://github.com/pytoolz/toolz
- pip install git+https://github.com/pytoolz/cytoolz
# Install dask
- pip install git+https://github.com/ContinuumIO/dask
# Install PyMongo
- pip install pymongo
# Install dynd
- conda install -c mwiebe dynd-python
# Install coveralls
- pip install coveralls
# Install Blaze
- python setup.py install
before_script:
- sleep 15
- "mongo admin --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true});'"
- psql -c "create database test;" -U postgres
script:
- echo '[pytest]' > pytest.ini
- echo 'addopts = -vv -r sxX --doctest-modules --doctest-ignore-import-errors --doctest-glob='*.rst' --pyargs blaze docs' >> pytest.ini
- echo 'norecursedirs = docs/source/scripts' >> pytest.ini
- coverage run --include='blaze/*' $(which py.test)
- coverage report --show-missing
after_success:
- coveralls
notifications:
email: false
flowdock: "b08b3ba4fb86fa48121e90b5f67ccb75"
on_success: "change"
on_failure: "always" # "change"