You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/04/08 18:10:43 UTC

[camel-quarkus] 03/05: Build Quarkus master branch instead of relying on indeterminate SNAPSHOT versions

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 07a646157a4e7001cc19828f45a2d07544a83d1a
Author: James Netherton <ja...@gmail.com>
AuthorDate: Wed Apr 8 14:57:48 2020 +0100

    Build Quarkus master branch instead of relying on indeterminate SNAPSHOT versions
---
 .github/workflows/pr-build.yaml | 37 ++++++++++++++++++++++++++++---------
 1 file changed, 28 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml
index 16c9498..c02e4ef 100644
--- a/.github/workflows/pr-build.yaml
+++ b/.github/workflows/pr-build.yaml
@@ -38,10 +38,21 @@ jobs:
     env:
       MAVEN_OPTS: -Xmx3000m
     steps:
-      - name: Set BRANCH_OPTIONS
-        if: github.base_ref == 'camel-master' || github.base_ref == 'quarkus-master'
+      - name: Setup apache-snapshots profile
+        if: github.base_ref == 'camel-master'
         run: |
-          echo '::set-env name=BRANCH_OPTIONS::-Psnapshots'
+          echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots'
+      - name: Setup oss-snapshots profile
+        if: github.base_ref == 'quarkus-master'
+        run: |
+          echo '::set-env name=BRANCH_OPTIONS::-Poss-snapshots'
+      - name: Build Quarkus
+        if: github.base_ref == 'quarkus-master'
+        run: |
+          git clone --depth 1 --branch master https://github.com/quarkusio/quarkus.git \
+            && cd quarkus \
+            && echo "Current Quarkus commit:" $(git rev-parse HEAD) \
+            && ./mvnw -B clean install -DskipTests -DskipITs
       - name: Checkout
         uses: actions/checkout@v2
       - name: Set up JDK 11
@@ -68,10 +79,14 @@ jobs:
     env:
       MAVEN_OPTS: -Xmx3000m
     steps:
-      - name: Set BRANCH_OPTIONS
-        if: github.base_ref == 'camel-master' || github.base_ref == 'quarkus-master'
+      - name: Setup apache-snapshots profile
+        if: github.base_ref == 'camel-master'
         run: |
-          echo '::set-env name=BRANCH_OPTIONS::-Psnapshots'
+          echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots'
+      - name: Setup oss-snapshots profile
+        if: github.base_ref == 'quarkus-master'
+        run: |
+          echo '::set-env name=BRANCH_OPTIONS::-Poss-snapshots'
       - uses: actions/checkout@v2
       - name: Set up JDK ${{ matrix.java }}
         uses: joschi/setup-jdk@v1
@@ -204,10 +219,14 @@ jobs:
               bean-validator
               validator
     steps:
-      - name: Set BRANCH_OPTIONS
-        if: github.base_ref == 'camel-master' || github.base_ref == 'quarkus-master'
+      - name: Setup apache-snapshots profile
+        if: github.base_ref == 'camel-master'
+        run: |
+          echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots'
+      - name: Setup oss-snapshots profile
+        if: github.base_ref == 'quarkus-master'
         run: |
-          echo '::set-env name=BRANCH_OPTIONS::-Psnapshots'
+          echo '::set-env name=BRANCH_OPTIONS::-Poss-snapshots'
       - name: Checkout
         uses: actions/checkout@v2
       - name: Set up JDK 11