Commit 4b4e7667 authored by Vít Kabele's avatar Vít Kabele

CI jobs from test stage are now executed in parallel

parent 0d745e04
Pipeline #4474 failed with stages
in 2 minutes and 3 seconds
......@@ -6,17 +6,17 @@ cache: &cache
key: "${CI_COMMIT_REF_SLUG}"
# Cache deps and compiled classes
paths:
- 'output/'
- 'lib/'
- 'src-disl-agent/linux-x86_64' # Specific architecture of used container
- 'output/'
- 'lib/'
- 'src-disl-agent/linux-x86_64' # Specific architecture of used container
# Adjust modification date to prevent recompiling sources in different stages.
before_script:
- find . -exec touch -t 200001010000 {} \;
- find . -exec touch -t 200001010000 {} \;
stages:
- build
- test
- build
- test
# Jobs definitions
# The YAML Anchors are used because of Gitlab Issue#2838
......@@ -29,13 +29,29 @@ build:
policy:
push
script:
- ant build
- ant build
# Run tests
test:
test compound:
stage: test
cache:
<<: *cache
policy: pull
script:
- ant test
- ant test-compound
test disl:
stage: test
cache:
<<: *cache
policy: pull
script:
- ant test-disl
test shvm:
stage: test
cache:
<<: *cache
policy: pull
script:
- ant test-shvm
......@@ -771,11 +771,21 @@
</sequential>
</macrodef>
<!-- Run nested instrumentation library tests -->
<target name="test" depends="build,build-test" description="Runs all tests or a selected (-Dtest.name=...) test suite.">
<!-- Run the instrumentation library unit tests -->
<target name="test-disl">
<ant antfile="${src.disl.prefix}/build.xml" target="test" usenativebasedir="true"/>
</target>
<!-- Run the shadow VM unit tests -->
<target name="test-shvm">
<ant antfile="${src.shvm.prefix}/build.xml" target="test" usenativebasedir="true" />
</target>
<!-- Run all tests -->
<target name="test" depends="test-disl,test-shvm,test-comopound"></target>
<!-- Run compound tests -->
<target name="test-comopound" depends="build,build-test" description="Runs all tests or a selected (-Dtest.name=...) test suite.">
<!--
If test.name is set to a name of a test suite, only include the test suite
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment