forked from apache/sedona
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (29 loc) · 1.16 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
os:
- linux
dist: xenial
language: scala
jdk:
- openjdk8
python:
- "3.7"
before_install:
- sudo apt-get -y install python3-pip python-dev
- sudo pip3 install -U setuptools
- sudo pip3 install -U wheel
- sudo pip3 install -U virtualenvwrapper
install:
- python3 -m pip install pipenv
- wget https://archive.apache.org/dist/spark/spark-2.4.4/spark-2.4.4-bin-hadoop2.7.tgz
- tar -xzf spark-2.4.4-bin-hadoop2.7.tgz
- rm spark-2.4.4-bin-hadoop2.7.tgz
script:
- cat python/geo_wrapper/spark_2_4 > python/geo_wrapper/build.sbt
- (cd python/geo_wrapper; sbt package)
- (cd python;pipenv install --dev)
- export SPARK_HOME=$PWD/spark-2.4.4-bin-hadoop2.7
- export PYTHONPATH=$SPARK_HOME/python
- mvn -q clean install
- find core/target/ -iregex "core\/target\/geospark-[0-9]\.[0-9]\.[0-9]\.jar" -exec cp {} $SPARK_HOME/jars \;
- find sql/target/ -iregex "sql\/target\/geospark-sql_[0-9]\.[0-9]-[0-9]\.[0-9]\.[0-9]\.jar" -exec cp {} $SPARK_HOME/jars \;
- find python/geo_wrapper/target/scala-2.11 -iregex "python\/geo_wrapper\/target\/scala-2\.11\/geo_wrapper_2\.11-[0-9]\.[0-9]\.[0-9]\.jar" -exec cp {} $SPARK_HOME/jars \;
- (cd python;pipenv run pytest tests)