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/10/23 12:09:48 UTC

[camel-k-runtime] 02/03: build(actions): disable http keepalive

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 511f53bc66c40f711064035074feffc4b2776852
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Fri Oct 23 12:57:18 2020 +0200

    build(actions): disable http keepalive
---
 .github/workflows/ci-build.yml    | 10 +++++++---
 .github/workflows/pr-validate.yml | 10 ++++++++--
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index e2aa863..f3906d7 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -16,6 +16,10 @@
 #
 name: Build
 
+env:
+  MAVEN_OPTS: -Xmx3000m
+  MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -e
+
 on:
   push:
     branches:
@@ -70,7 +74,7 @@ jobs:
           version:  ${{ matrix.java }}
       - name: Build on ${{ matrix.java }}
         run: |
-          ./mvnw -V -B -ntp clean install
+          ./mvnw ${MAVEN_ARGS} -B clean install
   build-native:
     runs-on: ubuntu-latest
     needs: build
@@ -109,7 +113,7 @@ jobs:
         run: tar -xzf maven-repo-${{ github.run_id }}-${{ github.run_number }}.tgz -C ~
       - name: Integration Test - ${{ matrix.native-image-project }}
         run: |
-          ./mvnw -V -B -ntp -nsu clean install \
+          ./mvnw ${MAVEN_ARGS} -B -nsu clean install \
             -Dnative \
             -Dnative-image.xmx=6g \
             -Ddocker \
@@ -128,7 +132,7 @@ jobs:
       with:
         version: '11'
     - name: Deploy to ASF Snapshots Repository
-      run: ./mvnw -V clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml
+      run: ./mvnw ${MAVEN_ARGS} clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml
 
 #
 # JS build disabled as fails for OOM
diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/pr-validate.yml
index 58ce713..b041abc 100644
--- a/.github/workflows/pr-validate.yml
+++ b/.github/workflows/pr-validate.yml
@@ -16,6 +16,10 @@
 #
 name: Validate PR
 
+env:
+  MAVEN_OPTS: -Xmx3000m
+  MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -e
+
 on:
   pull_request:
     branches:
@@ -36,7 +40,9 @@ jobs:
         version: '11'
     - name: mvn package
       run: |
-        ./mvnw -ntp clean verify \
+        ./mvnw ${MAVEN_ARGS} \
+          -Dhttp.keepAlive=false \
           -Dcheckstyle.failOnViolation=true \
           -DskipTests \
-          -Psourcecheck,license
+          -Psourcecheck,license \
+          clean verify