forked from blaze/odo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
88 lines (75 loc) · 2.86 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
86
87
88
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: 3.5
env:
- 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
- python: 3.5
env: PANDAS_VERSION="git+https://github.com/pydata/pandas"
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
- python: 3.5
env: PANDAS_VERSION="git+https://github.com/pydata/pandas"
addons:
postgresql: "9.3"
services:
- mongodb
- mysql
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 odo python=$TRAVIS_PYTHON_VERSION pytest numpy pandas sqlalchemy
- conda install -n odo h5py pip cython bcolz coverage networkx toolz multipledispatch
- conda install -n odo pytables paramiko boto boto3 bokeh pymysql
- if [ -n "$PANDAS_VERSION" ]; then conda remove -n odo pandas; fi
- source activate odo
# datashape
- pip install git+git://github.com/blaze/datashape.git
# Install various deps
- conda uninstall toolz
- pip install -U toolz sas7bdat psycopg2 dill 'pymongo<3'
- pip install git+git://github.com/blaze/dask.git#egg=dask-dev[complete]
- if [ -n "$PANDAS_VERSION" ]; then pip install $PANDAS_VERSION; fi
# install pyspark
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' || $TRAVIS_PYTHON_VERSION == '3.4' ]]; then conda install spark=$SPARK_VERSION -c blaze -c https://conda.binstar.org/blaze/channel/dev -c anaconda-cluster; fi
# redshift sqlalchemy dialect
- pip install --upgrade git+git://github.com/graingert/redshift_sqlalchemy
# Before_script section stolen from fabric
# See license https://github.com/fabric/fabric/blob/master/LICENSE
before_script:
# Allow us to SSH passwordless to localhost
- ssh-keygen -f ~/.ssh/id_rsa -N ""
- cp ~/.ssh/{id_rsa.pub,authorized_keys}
# Creation of an SSH agent for testing forwarding
- eval $(ssh-agent)
- ssh-add
- "mongo admin --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true});'"
- mysql -e "create database if not exists test;" -u root
- psql -c "create database test;" -U postgres
- sleep 15
script:
- conda list numpy
- py.test -v --doctest-modules --doctest-ignore-import-errors odo
notifications:
email: false