forked from h2oai/sparkling-water
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 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
31
32
33
34
35
36
37
38
39
40
41
language: scala
sudo: true
dist: precise
dist: trusty
jdk:
- oraclejdk8
- openjdk8
install:
- ( test -d "$SPARK_HOME" && test "$(ls -A "$SPARK_HOME")" ) || ( wget -O spark.tgz "http://d3kbcqa49mib13.cloudfront.net/spark-2.2.0-bin-hadoop2.6.tgz" && mkdir -p "$SPARK_HOME" && tar xvf "spark.tgz" -C "$SPARK_HOME" --strip-components 1 )
env:
global:
- SPARK_HOME="$HOME/spark22/"
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: travis_wait 30 ./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