You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2020/06/17 19:31:32 UTC
[activemq-artemis] branch master updated: NO-JIRA: add a basic
GitHub Actions build similar to the Travis job
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/master by this push:
new 0a44416 NO-JIRA: add a basic GitHub Actions build similar to the Travis job
new 205b61d This closes #3191
0a44416 is described below
commit 0a44416ba5a97f19d3c12a86ffd6684c9849d2f1
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Wed Jun 17 15:48:08 2020 +0100
NO-JIRA: add a basic GitHub Actions build similar to the Travis job
---
.github/workflows/build.yml | 38 ++++++++++++++++++++++++++++++++++++++
pom.xml | 1 +
2 files changed, 39 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..0d1003a
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,38 @@
+name: "Build"
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-18.04
+ strategy:
+ fail-fast: false
+ matrix:
+ java: [ 8, 11, 14 ]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.m2/repository
+ !~/.m2/repository/org/apache/activemq/artemis-*
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+
+ - name: Install JDK ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+
+ # use 'install' so smoke-tests will work
+ # use '-Pextra-tests' to ensure extra-tests compiles even though they won't actually run
+ # By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite
+ - name: Build
+ run: |
+ set -e
+ mvn -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Djdk8-errorprone -Pfast-tests -Pextra-tests -Ptests-CI -B install -q
+ cd examples
+ mvn install -PnoRun -B -q
+
diff --git a/pom.xml b/pom.xml
index 05eae01..c43c234 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1672,6 +1672,7 @@
<excludes>
<exclude>.repository/**</exclude>
<exclude>.travis.yml</exclude>
+ <exclude>.github/workflows/*</exclude>
<exclude>**/footer.html</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.md</exclude>