forked from h2oai/sparkling-water
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (32 loc) · 1.17 KB
/
.travis.yml
File metadata and controls
40 lines (32 loc) · 1.17 KB
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
language: scala
sudo: true
jdk:
- oraclejdk7
- oraclejdk8
- openjdk7
install:
- ( test -d "$SPARK_HOME" && test "$(ls -A "$SPARK_HOME")" ) || ( wget -O spark.tgz "http://mirrors.ocf.berkeley.edu/apache/spark/spark-2.0.0-preview/spark-2.0.0-preview-bin-hadoop2.4.tgz" && mkdir -p "$SPARK_HOME" && tar xvf "spark.tgz" -C "$SPARK_HOME" --strip-components 1 )
env:
global:
- SPARK_HOME="$HOME/spark20/"
matrix:
- SCALA_BASE_VERSION="2.11"
- SCALA_BASE_VERSION="2.10"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $SPARK_HOME
script: ./gradlew clean build -x integTest -x :sparkling-water-py:build -PsparklingTestEnv=local -PsparkHome=$SPARK_HOME -PscalaBaseVersion=$SCALA_BASE_VERSION
# To solve BufferOverflow on OpenJDK7 we setup short hostname (<64characters)
# See:
# - ISSUE-5227: https://github.com/travis-ci/travis-ci/issues/5227
# - https://docs.travis-ci.com/user/hostname
# - https://github.com/mockito/mockito/blob/master/.travis.yml
addons:
hosts:
- sw-test-host
hostname: sw-test-host