You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2022/07/12 11:26:00 UTC
[activemq-artemis-native] branch main updated (4316acb -> 729d53e)
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-native.git
from 4316acb Increasing the Native version to a higher number in case we ever make other 1.x releases
new 3f85794 fail the build when the tests fail, ensure e.g CI jobs actually signal issues
new 729d53e add a GHA CI build job to run the build+test and some checks
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/maven-settings.xml | 53 +++++++++++++++++++++++++++++++++++++++++++++
.github/workflows/build.yml | 47 ++++++++++++++++++++++++++++++++++++++++
pom.xml | 8 +++----
3 files changed, 103 insertions(+), 5 deletions(-)
create mode 100644 .github/maven-settings.xml
create mode 100644 .github/workflows/build.yml
[activemq-artemis-native] 01/02: fail the build when the tests fail, ensure e.g CI jobs actually signal issues
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-native.git
commit 3f85794cb5bf487bd57b4a7d9a2448196ca303c8
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Tue Jul 12 12:18:36 2022 +0100
fail the build when the tests fail, ensure e.g CI jobs actually signal issues
---
pom.xml | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 5e971d9..f21a078 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,10 +56,7 @@
</activemq-surefire-argline>
<activemq.basedir>${project.basedir}</activemq.basedir>
- <!-- Ignore failed tests by default because there are "known" failures in the full test-suite.
- This will be set to false for the "fast-tests" profile as none of those tests should fail. -->
- <testFailureIgnore>true</testFailureIgnore>
-
+ <maven.test.failure.ignore>false</maven.test.failure.ignore>
<maven.test.redirectTestOutputToFile>false</maven.test.redirectTestOutputToFile>
</properties>
@@ -277,7 +274,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
- <testFailureIgnore>${testFailureIgnore}</testFailureIgnore>
+ <testFailureIgnore>${maven.test.failure.ignore}</testFailureIgnore>
<runOrder>alphabetical</runOrder>
<redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
<argLine>${activemq-surefire-argline}</argLine>
[activemq-artemis-native] 02/02: add a GHA CI build job to run the build+test and some checks
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-native.git
commit 729d53e2ac2252b3c07c4527b6c1f1f7ae49d5b1
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Tue Jul 12 12:21:03 2022 +0100
add a GHA CI build job to run the build+test and some checks
---
.github/maven-settings.xml | 53 +++++++++++++++++++++++++++++++++++++++++++++
.github/workflows/build.yml | 47 ++++++++++++++++++++++++++++++++++++++++
pom.xml | 1 +
3 files changed, 101 insertions(+)
diff --git a/.github/maven-settings.xml b/.github/maven-settings.xml
new file mode 100644
index 0000000..65a7886
--- /dev/null
+++ b/.github/maven-settings.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<settings>
+ <profiles>
+ <profile>
+ <id>google-mirror</id>
+ <repositories>
+ <repository>
+ <id>google-maven-central</id>
+ <name>GCS Maven Central mirror</name>
+ <url>https://maven-central.storage-download.googleapis.com/maven2/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>google-maven-central</id>
+ <name>GCS Maven Central mirror</name>
+ <url>https://maven-central.storage-download.googleapis.com/maven2/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+ <activeProfiles>
+ <activeProfile>google-mirror</activeProfile>
+ </activeProfiles>
+</settings>
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..875f5f5
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,47 @@
+name: "Build"
+
+on: [push, pull_request, workflow_dispatch]
+
+jobs:
+ test:
+ name: Test (${{ matrix.java }})
+ runs-on: ubuntu-20.04
+ strategy:
+ fail-fast: false
+ matrix:
+ java: [ 11, 17 ]
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Cache Maven Local Repo
+ if: ${{ !startsWith(github.ref, 'refs/tags/') }}
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.m2/repository/
+ key: ${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-mvn-
+
+ - name: Install JDK ${{ matrix.java }}
+ uses: actions/setup-java@v3
+ with:
+ java-version: ${{ matrix.java }}
+ distribution: 'temurin'
+
+ - name: Pull Base Image
+ run: |
+ docker pull centos:7
+
+ - name: RAT Check
+ run: |
+ mvn -s .github/maven-settings.xml apache-rat:check
+
+ - name: Javadoc Check
+ run: |
+ mvn -s .github/maven-settings.xml javadoc:javadoc
+
+ - name: Build and Test (-Pdocker)
+ run: |
+ mvn -s .github/maven-settings.xml verify -Pdocker
diff --git a/pom.xml b/pom.xml
index f21a078..179f082 100644
--- a/pom.xml
+++ b/pom.xml
@@ -312,6 +312,7 @@
<configuration>
<reportFile>${activemq.basedir}/ratReport.txt</reportFile>
<excludes>
+ <exclude>.github/workflows/*.yml</exclude>
<exclude>.travis.yml</exclude>
<exclude>**/footer.html</exclude>
<exclude>**/*.txt</exclude>