forked from h2oai/h2o-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (74 loc) · 3.47 KB
/
build.gradle
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//
// H2O Algos Module
//
description = "H2O Algorithms"
dependencies {
compile project(":h2o-core")
// Jama dependencies
compile "gov.nist.math:jama:1.0.3"
// netlib-java / MTJ dependencies
// Manually define all dependencies in com.github.fommil.netlib:all:1.1.2 to make Databricks maven resolver happy.
// Also exclude arpack_combined_all dependency and manually add it later. The fommil libraries
// reference this dependency and also its javadoc which confuses some maven resolvers (Spark ivy resolver)
compile('com.github.fommil.netlib:core:1.1.2') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('net.sourceforge.f2j:arpack_combined_all:0.1')
compile('com.github.fommil.netlib:netlib-native_ref-osx-x86_64:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.github.fommil.netlib:netlib-native_ref-linux-x86_64:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.github.fommil.netlib:netlib-native_ref-win-x86_64:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.github.fommil.netlib:netlib-native_ref-linux-armhf:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.github.fommil.netlib:netlib-native_system-osx-x86_64:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.github.fommil.netlib:netlib-native_system-linux-x86_64:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.github.fommil.netlib:netlib-native_system-linux-armhf:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.github.fommil.netlib:netlib-native_system-win-x86_64:1.1:natives') {
exclude group: 'net.sourceforge.f2j', module: 'arpack_combined_all'
}
compile('com.googlecode.matrix-toolkits-java:mtj:1.0.4') {
exclude group: 'com.github.fommil.netlib', module: 'all'
}
// Test dependencies only
testCompile project(":h2o-test-support")
testCompile project(":h2o-genmodel-ext-jgrapht")
testRuntimeOnly project(":${defaultWebserverModule}")
testCompileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
jmh project(":${defaultWebserverModule}")
}
apply from: "${rootDir}/gradle/dataCheck.gradle"
task testSSLEncryption(type: Exec) {
dependsOn jar, testJar
if(project.hasProperty('doTestSSL')) {
commandLine 'bash', './testSSL.sh'
} else {
commandLine 'echo', 'SSL tests not enabled'
}
}
// The default 'test' behavior is broken in that it does not grok clusters.
// For H2O, all tests need to be run on a cluster, where each JVM is
// "free-running" - it's stdout/stderr are NOT hooked by another process. If
// they are hooked (e.g., by the gradle driver process) then the stdout/err get
// buffered and when all CPUs are maxed out (happens over a large fraction of
// the test run) no output is visible. If the JVMs then crash (again, common
// enough), we get NO output for the test run. So instead we need to arrange a
// complete cluster of free-running JVMs and redirect all output (at the OS
// level) to files - then scrape the files later for test results.
test {
dependsOn ":h2o-core:testJar"
dependsOn smalldataCheck, jar, testJar, testSingleNode, testMultiNode, testSSLEncryption
// Defeat task 'test' by running no tests.
exclude '**'
}