You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2020/09/14 11:13:11 UTC

[camel-k-runtime] 04/11: build(ci): add an option to build against latest camel bits

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

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

commit 14f48019e0283476b76df5d40e426183c308be58
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Thu Aug 27 10:23:04 2020 +0200

    build(ci): add an option to build against latest camel bits
---
 .github/workflows/ci-build.yml    | 21 +++++++++++++++++++++
 .github/workflows/pr-validate.yml |  1 +
 2 files changed, 22 insertions(+)

diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 7a89f03..eb29080 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -38,12 +38,32 @@ on:
 jobs:
   build:
     runs-on: ubuntu-latest
+    env:
+      MAVEN_OPTS: -Xmx3000m
     steps:
     - uses: actions/checkout@v2
     - name: Set up JDK 11
       uses: AdoptOpenJDK/install-jdk@v1
       with:
         version: '11'
+    - name: Build camel master
+      if: contains( github.event.pull_request.labels.*.name, 'depends-on/camel/master')
+      run: |
+        git clone --depth 1 --branch master https://github.com/apache/camel.git \
+          && cd camel \
+          && echo "Current Camel commit:" $(git rev-parse HEAD) \
+          && ./mvnw -V -B -ntp clean install \
+            -Dfastinstall
+        git clone --depth 1 --branch camel-master https://github.com/apache/camel-quarkus.git \
+          && cd camel-quarkus \
+          && echo "Current Camel Quarkus commit:" $(git rev-parse HEAD) \
+          && ./mvnw -V -B -ntp clean install \
+            -Dformatter.skip \
+            -Dimpsort.skip \
+            -Denforce=false \
+            -Dcamel-quarkus.update-extension-doc-page.skip \
+            -DskipTests \
+            -DskipITs
     - name: mvn install
       run: ./mvnw -V -B -ntp clean install
     - name: Tar Maven Repo
@@ -67,6 +87,7 @@ jobs:
         with:
           version:  ${{ matrix.java }}
       - name: Build on ${{ matrix.java }}
+        if: contains( github.event.pull_request.labels.*.name, 'depends-on/camel/master') == 'false'
         run: |
           ./mvnw -V -B -ntp clean install
   build-native:
diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/pr-validate.yml
index ceb5885..36f553a 100644
--- a/.github/workflows/pr-validate.yml
+++ b/.github/workflows/pr-validate.yml
@@ -35,6 +35,7 @@ jobs:
       with:
         version: '11'
     - name: mvn package
+      if: contains( github.event.pull_request.labels.*.name, 'depends-on/camel/master') == 'false'
       run: |
         ./mvnw -fae -B -ntp clean verify \
           -Dcheckstyle.failOnViolation=true \