-
Notifications
You must be signed in to change notification settings - Fork 184
/
.travis.yml
37 lines (32 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
36
37
language: python
python:
- "2.7"
- "3.4"
- "3.5"
jdk:
- openjdk7
sudo: false
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.7.3-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-3.7.3-Linux-x86_64.sh -O miniconda.sh;
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 -q conda
- conda info -a
- conda create --yes -q -n test python=$TRAVIS_PYTHON_VERSION pip numpy scipy pytest boto
- source activate test
- pip install .
- pip install -r requirements-dev.txt
- wget http://d3kbcqa49mib13.cloudfront.net/spark-2.0.0-bin-hadoop2.7.tgz
- tar -xzf spark-2.0.0-bin-hadoop2.7.tgz
script:
- export SPARK_HOME=`pwd`/spark-2.0.0-bin-hadoop2.7
- export PYTHONPATH=$SPARK_HOME/python:$PYTHONPATH
- export PYTHONPATH=$SPARK_HOME/python/lib/py4j-0.10.1-src.zip:$PYTHONPATH
- py.test
- py.test --engine=spark