Skip to content

Commit fca70aa

Browse files
committed
Fixes to TravisCI build to handle pinning of Python and Java version to support PySpark.
1 parent 0642a97 commit fca70aa

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.travis.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
sudo: false
22
dist: xenial
3-
language: scala
3+
language: python
4+
5+
python:
6+
- "3.7"
47

58
cache:
69
directories:
@@ -11,30 +14,24 @@ cache:
1114
scala:
1215
- 2.11.11
1316

14-
jdk:
15-
- openjdk8
16-
17-
python:
18-
- "3.7"
17+
env:
18+
- COURSIER_VERBOSITY=-1 JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
1919

2020
addons:
2121
apt:
2222
packages:
23+
- openjdk-8-jdk
2324
- pandoc
24-
- python-pip
2525

2626
install:
27-
- pip install setuptools
28-
29-
sbt_args: -no-colors
27+
- pip install --user rasterio shapely pandas numpy
28+
- wget -O - https://piccolo.link/sbt-1.2.8.tgz | tar xzf -
3029

3130
script:
32-
- sbt test
33-
- sbt it:test
31+
- sbt/bin/sbt -java-home $JAVA_HOME -batch test
32+
- sbt/bin/sbt -java-home $JAVA_HOME -batch it:test
3433
# - sbt -Dfile.encoding=UTF8 clean coverage test coverageReport
3534
# Tricks to avoid unnecessary cache updates
3635
- find $HOME/.sbt -name "*.lock" | xargs rm
3736
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
3837

39-
#after_success:
40-
# - bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)