Make Java copy into separate directories so the tests can run concurrently.
This commit is contained in:
parent
38bc15552d
commit
2f3f1de16d
@ -112,18 +112,22 @@ use_java() {
|
|||||||
MVN="mvn --batch-mode"
|
MVN="mvn --batch-mode"
|
||||||
|
|
||||||
build_java() {
|
build_java() {
|
||||||
|
version=$1
|
||||||
|
dir=java_$version
|
||||||
# Java build needs `protoc`.
|
# Java build needs `protoc`.
|
||||||
internal_build_cpp
|
internal_build_cpp
|
||||||
cd java && $MVN test && $MVN install
|
cp -r java $dir
|
||||||
cd util && $MVN test
|
cd $dir && $MVN clean && $MVN test
|
||||||
cd ../..
|
cd ../..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# The conformance tests are hard-coded to work with the $ROOT/java directory.
|
||||||
|
# So this can't run in parallel with two different sets of tests.
|
||||||
build_java_with_conformance_tests() {
|
build_java_with_conformance_tests() {
|
||||||
# Java build needs `protoc`.
|
# Java build needs `protoc`.
|
||||||
internal_build_cpp
|
internal_build_cpp
|
||||||
cd java && $MVN test && $MVN install
|
cd java && $MVN test && $MVN install
|
||||||
cd util && $MVN test && $MVN assembly:single
|
cd util && $MVN package assembly:single
|
||||||
cd ../..
|
cd ../..
|
||||||
cd conformance && make test_java && cd ..
|
cd conformance && make test_java && cd ..
|
||||||
}
|
}
|
||||||
@ -136,7 +140,7 @@ build_javanano() {
|
|||||||
|
|
||||||
build_java_jdk6() {
|
build_java_jdk6() {
|
||||||
use_java jdk6
|
use_java jdk6
|
||||||
build_java
|
build_java jdk6
|
||||||
}
|
}
|
||||||
build_java_jdk7() {
|
build_java_jdk7() {
|
||||||
use_java jdk7
|
use_java jdk7
|
||||||
@ -144,7 +148,7 @@ build_java_jdk7() {
|
|||||||
}
|
}
|
||||||
build_java_oracle7() {
|
build_java_oracle7() {
|
||||||
use_java oracle7
|
use_java oracle7
|
||||||
build_java
|
build_java oracle7
|
||||||
}
|
}
|
||||||
|
|
||||||
build_javanano_jdk6() {
|
build_javanano_jdk6() {
|
||||||
|
Loading…
Reference in New Issue
Block a user