forked from blaze/blaze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (64 loc) · 2.56 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
sudo: false
language: python
matrix:
fast_finish: true
include:
- python: 2.7
env: SPARK_VERSION=1.4
- python: 2.7
env: SPARK_VERSION=1.5
- python: 3.4
env: SPARK_VERSION=1.4
- python: 3.4
env: SPARK_VERSION=1.5
- python: 2.7
env: PANDAS_VERSION="git+https://github.com/pydata/pandas" SPARK_VERSION=1.5
- python: 3.4
env: PANDAS_VERSION="git+https://github.com/pydata/pandas" SPARK_VERSION=1.5
allow_failures:
- python: 2.7
env: PANDAS_VERSION="git+https://github.com/pydata/pandas" SPARK_VERSION=1.5
- python: 3.4
env: PANDAS_VERSION="git+https://github.com/pydata/pandas" SPARK_VERSION=1.5
services:
- mongodb
addons:
postgresql: "9.3"
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 blaze -c blaze python=$TRAVIS_PYTHON_VERSION pytest numpy sqlalchemy pandas h5py pip flask requests pytables cython bcolz xlrd coverage psutil networkx numba pyyaml cytoolz toolz multipledispatch dask pymongo=2.8 flask-cors psycopg2
- if [ -n "$PANDAS_VERSION" ]; then conda remove -n blaze pandas; fi
- source activate blaze
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' || $TRAVIS_PYTHON_VERSION == '3.4' ]]; then conda install spark=$SPARK_VERSION -c blaze -c anaconda-cluster; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then conda install pyhive -c blaze; fi
# blaze required deps
- pip install git+https://github.com/blaze/datashape
- pip install git+https://github.com/blaze/odo
- if [ -n "$PANDAS_VERSION" ]; then pip install "$PANDAS_VERSION"; fi
# 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/*' --omit='blaze/_version.py' $(which py.test)
- coverage report --show-missing
after_success:
- coveralls
notifications:
email: false
flowdock: "b08b3ba4fb86fa48121e90b5f67ccb75"
on_success: "change"
on_failure: "always" # "change"