Instead of automatically pulling all changes from ctf-testsuite,
which may break our builds unexpectedly, we'll define a commit
to use in the plugin's pom.xml.
We can regularly update this pointer to pull in newer versions
of the test suite.
The property can also be overridden on the command-line, for
example using:
mvn clean verify -DctfTestSuiteCommit=master
will use ctf-testsuite's master branch.
Change-Id: I06b8e11f12fec16d9c011f0f2a80b083fcadd8de
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/47554
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
+ <properties>
+ <ctfTestSuiteCommit>0f8beba86ae551f42adeb81d1bfddd5645f31013</ctfTestSuiteCommit>
+ </properties>
+
<!-- Do not download the test traces if "maven.test.skip" is set -->
<profiles>
<profile>
<phase>pre-integration-test</phase>
<configuration>
<target>
+ <property name="ctf-test-suite-commit" value="${ctfTestSuiteCommit}"/>
<ant antfile="get-traces.xml" dir="traces" />
</target>
</configuration>
</target>
<target name="pullTestSuite" if="testSuiteExists">
+ <!-- Update the local 'master' branch -->
+ <exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
+ <arg value = "checkout"/>
+ <arg value = "master"/>
+ </exec>
<exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
<arg value = "pull"/>
</exec>
+
+ <!-- Checkout the commit requested by the current build -->
+ <exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
+ <arg value = "checkout"/>
+ <arg value = "${ctf-test-suite-commit}"/>
+ </exec>
</target>
<target name="extractTraces" if="tracesExist">