forked from HyukjinKwon/pyspark-project-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 1.03 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
language: python
install:
- pip install codecov
- pip install pep8
- pip install -r requirements.txt
evn:
global:
- PYTHONPATH=`pwd`
matrix:
include:
# Spark 1.5.2
- jdk: openjdk7
python: 2.7
env: >
TEST_SPARK_VERSION=1.5.2
SPARK_HOME=`pwd`/thirdparty/spark-$TEST_SPARK_VERSION-bin-hadoop2.4
PYTHONPATH=$SPARK_HOME/python/:$PYTHONPATH
# Spark 1.6.1
- jdk: openjdk7
python: 2.7
env: >
TEST_SPARK_VERSION=1.6.1
SPARK_HOME=`pwd`/thirdparty/spark-$TEST_SPARK_VERSION-bin-hadoop2.4
PYTHONPATH=$SPARK_HOME/python/:$PYTHONPATH
before_script:
# Download Spark
- mkdir thirdparty
- curl -O http://apache.mirror.cdnetworks.com/spark/spark-$TEST_SPARK_VERSION/spark-$TEST_SPARK_VERSION-bin-hadoop2.4.tgz
- tar zxfC spark-$TEST_SPARK_VERSION-bin-hadoop2.4.tgz thirdparty
script:
- pep8 --first `find pyexample -name "*.py"`
- coverage run pyexample/tests/tests.py
- python setup.py build
after_success:
- bash <(curl -s https://codecov.io/bash)