Skip to content

Commit

Permalink
Move the tycho-version into the maven.config and unify build arguments
Browse files Browse the repository at this point in the history
Move specification of the -Dmaven.test.error/failure.ignore=true
properties to the build files again, so that local builds can fail.
  • Loading branch information
HannesWell committed Jul 30, 2023
1 parent 9459582 commit 66c24b4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
- name: Build m2e-core
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
with:
run: mvn clean verify -Pits -Dtycho.p2.baselineMode=failCommon --batch-mode
run: mvn clean verify --batch-mode -Pits -Dtycho.p2.baselineMode=failCommon -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true
- name: Upload Test Results
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: test-results-${{ matrix.os }}
if-no-files-found: error
if-no-files-found: warn
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml
event_file:
Expand Down
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<extension>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-build</artifactId>
<version>4.0.0</version>
<version>${tycho-version}</version>
</extension>
</extensions>
7 changes: 4 additions & 3 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
--errors
--update-snapshots
--no-transfer-progress
-Dmaven.test.error.ignore=true
-Dmaven.test.failure.ignore=true
-Dtycho.target.pomDependencies=consider
--fail-at-end
-Dtycho.localArtifacts=ignore
-Dtycho.target.pomDependencies=consider
-Dtycho-version=4.0.0
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pipeline {
withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) {
xvnc(useXauthority: true) {
sh '''
mavenArgs="clean verify -Dtycho.p2.baselineMode=failCommon --batch-mode"
mavenArgs="clean verify --batch-mode -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Dtycho.p2.baselineMode=failCommon"
if [[ ${BRANCH_NAME} == master ]] || [[ ${BRANCH_NAME} =~ m2e-[0-9]+\\.[0-9]+\\.x ]]; then
mvn ${mavenArgs} -Peclipse-sign,its -Dgpg.passphrase="${KEYRING_PASSPHRASE}" -Dgpg.keyname="011C526F29B2CE79"
else
Expand Down
1 change: 0 additions & 1 deletion m2e-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tycho-version>4.0.0</tycho-version>
<tycho.p2.baselineMode>warn</tycho.p2.baselineMode>
<scmConnectionRaw>scm:git:https://github.com/eclipse-m2e/m2e-core.git</scmConnectionRaw>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion setup/tychoSnapshotSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- This Maven-settings file allows to test Tycho snapshots without the need to install them into the local Maven repository
and thus makes it possible to test snapshots of Tycho's extension in the CI.
To use it, add the following arguments to the Maven command: -s setup/tychoSnapshotSettings.xml -U -->
To use it, add the following line of arguments to the '.mvn/maven.config' file: -s setup/tychoSnapshotSettings.xml -U -->
<profiles>
<profile>
<id>tycho-snapshots</id>
Expand Down

0 comments on commit 66c24b4

Please sign in to comment.