mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
Parallelize travis builds
This commit is contained in:
parent
6600dfd98d
commit
b717f86e47
11
.travis.yml
11
.travis.yml
@ -5,8 +5,17 @@ env:
|
||||
- secure: OWgsHP9ijb7oLpZVJqlovccT+OO3uAWEZxVdT/rNFS1riGoTSwi1ptlHUw/lEZY1Lw1dEaSW6kfc2rqpTgsHOFQpcdJeK8E29TLn1x25kYaGzo6JY2wWi5q4I3IMRRcFEharXlucJUO6yZWqhDXZTD4J8yf+wXt4blSRrAXil50=
|
||||
- secure: T19BYOl5UB5vTDD3Q2np0iHroPm1elHhCW7AOkUPnjXE+mwMTWQlRm1LxbZ+tv1dykUSlhBwdLP7dNWRzWa1JbAY6Y2SbMmwfdryZTBaELcXWsTcGOP80pKx1ruY30mQfyguVukfIZj8qvRSIMwXCYm+Do+XffC8fmqXSTBRulA=
|
||||
- TERM=dumb
|
||||
- MAKE_ARGS="jdk-test"
|
||||
- MAKE_ARGS="test"
|
||||
- MAKE_ARGS="mode=debug test"
|
||||
- MAKE_ARGS="process=interpret test"
|
||||
- MAKE_ARGS="bootimage=true test"
|
||||
- MAKE_ARGS="mode=debug bootimage=true test"
|
||||
- MAKE_ARGS="openjdk=$JAVA_HOME test"
|
||||
- MAKE_ARGS="tails=true continuations=true heapdump=true test"
|
||||
- MAKE_ARGS="codegen-targets=all"
|
||||
|
||||
script: "./test/ci.sh"
|
||||
script: "./test/ci.sh ${MAKE_ARGS}"
|
||||
|
||||
after_success:
|
||||
- make clean build
|
||||
|
34
test/ci.sh
34
test/ci.sh
@ -9,26 +9,16 @@ run() {
|
||||
"${@}"
|
||||
}
|
||||
|
||||
if [ -z "${test_target}" ]; then
|
||||
test_target=test
|
||||
if [ ${#} -gt 0 ]; then
|
||||
run make ${@}
|
||||
else
|
||||
run make jdk-test
|
||||
run make test
|
||||
run make mode=debug test
|
||||
run make process=interpret test
|
||||
run make bootimage=true test
|
||||
run make mode=debug bootimage=true test
|
||||
run make openjdk=$JAVA_HOME test
|
||||
run make tails=true continuations=true heapdump=true test
|
||||
run make codegen-targets=all
|
||||
fi
|
||||
|
||||
# we shouldn't run jdk-test builds if we're not running the test target
|
||||
if [ ${test_target} = test ]; then
|
||||
run make ${flags} jdk-test
|
||||
fi
|
||||
|
||||
run make ${flags} ${test_target}
|
||||
run make ${flags} mode=debug ${test_target}
|
||||
run make ${flags} process=interpret ${test_target}
|
||||
# bootimage and openjdk builds without openjdk-src don't work:
|
||||
if [ -z "${openjdk}" ]; then
|
||||
run make ${flags} bootimage=true ${test_target}
|
||||
run make ${flags} mode=debug bootimage=true ${test_target}
|
||||
if [ -z "${android}" ]; then
|
||||
# might as well do an openjdk test while we're here:
|
||||
run make openjdk=$JAVA_HOME ${flags} ${test_target}
|
||||
fi
|
||||
fi
|
||||
run make ${flags} tails=true continuations=true heapdump=true ${test_target}
|
||||
run make ${flags} codegen-targets=all
|
||||
|
Loading…
Reference in New Issue
Block a user