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

[camel-quarkus] 02/02: Order native tests before other kinds of tests on the CI because they take longest

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

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

commit 4e5567942feaa7a303019714cd52f6add1ed31ca
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Sat Sep 5 13:25:04 2020 +0200

    Order native tests before other kinds of tests on the CI because they take longest
---
 .github/workflows/ci-build.yaml | 136 ++++++++++++++++++++--------------------
 1 file changed, 68 insertions(+), 68 deletions(-)

diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml
index 681943e..fe40916 100644
--- a/.github/workflows/ci-build.yaml
+++ b/.github/workflows/ci-build.yaml
@@ -109,6 +109,74 @@ jobs:
           CATEGORIES=$(cat tooling/scripts/test-categories.yaml | yq r - --printMode p "*." | sed "s/\(.*\)/'\1'/" | sed ':a;N;$!ba;s/\n/,/g')
           echo "::set-output name=matrix::{'category': [${CATEGORIES}]}"
 
+  native-tests:
+    name: Native Tests - ${{matrix.category}}
+    needs: initial-mvn-install
+    runs-on: ubuntu-latest
+    if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'JVM')
+    strategy:
+      fail-fast: false
+      matrix: ${{ fromJson(needs.initial-mvn-install.outputs.matrix) }}
+    steps:
+      - name: Setup apache-snapshots profile
+        if: github.ref == 'refs/heads/camel-master' || github.base_ref == 'camel-master'
+        run: |
+          echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots'
+      - name: Setup oss-snapshots profile
+        if: github.ref == 'refs/heads/quarkus-master' || github.base_ref == 'quarkus-master'
+        run: |
+          echo '::set-env name=BRANCH_OPTIONS::-Poss-snapshots -Dquarkus.version=999-SNAPSHOT'
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Set up JDK 11
+        uses: AdoptOpenJDK/install-jdk@v1
+        with:
+          version: '11'
+      - name: Download Maven Repo
+        uses: actions/download-artifact@v1
+        with:
+          name: maven-repo
+          path: ..
+      - name: Extract Maven Repo
+        shell: bash
+        run: |
+          df -h /
+          tar -xzf ../maven-repo.tgz -C ~
+          df -h /
+      - name: Install yq
+        run: |
+          sudo wget -O /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_amd64"
+          sudo chmod +x /usr/local/bin/yq
+      - name: Integration Tests
+        env:
+          TEST_MODULES: ${{matrix.test-modules}}
+        run: |
+          TEST_MODULES=""
+          for MODULE in $(cat tooling/scripts/test-categories.yaml | yq r - "${{ matrix.category }}.*"); do
+            if [ "${MODULE}" == "-" ]; then
+              continue
+            fi
+            TEST_MODULES="${TEST_MODULES} ${MODULE}"
+          done
+          TEST_MODULES=$(echo ${TEST_MODULES} | sed 's/^[ \t]*//;s/[ \t]*$//')
+
+          if [ -z "${TEST_MODULES}" ]; then
+            echo "No test modules were found for category ${{ matrix.category }}"
+            exit 1
+          fi
+
+          for i in $TEST_MODULES
+          do modules+=("integration-tests/$i"); done
+          IFS=,
+          eval ./mvnw -V -ntp ${BRANCH_OPTIONS} clean verify \
+            -Dformatter.skip -Dimpsort.skip -Denforce=false \
+            -Pnative,docker,ci \
+            -pl "${modules[*]}"
+      - name: Fail if there are uncommitted changes
+        shell: bash
+        run: |
+          [[ -z $(git status --porcelain) ]] || { echo 'There are uncommitted changes'; git status; exit 1; }
+
   functional-extension-tests:
     runs-on: ubuntu-latest
     needs: initial-mvn-install
@@ -240,74 +308,6 @@ jobs:
             -Dformatter.skip -Dimpsort.skip -Denforce=false \
             clean verify
 
-  native-tests:
-    name: Native Tests - ${{matrix.category}}
-    needs: initial-mvn-install
-    runs-on: ubuntu-latest
-    if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'JVM')
-    strategy:
-      fail-fast: false
-      matrix: ${{ fromJson(needs.initial-mvn-install.outputs.matrix) }}
-    steps:
-      - name: Setup apache-snapshots profile
-        if: github.ref == 'refs/heads/camel-master' || github.base_ref == 'camel-master'
-        run: |
-          echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots'
-      - name: Setup oss-snapshots profile
-        if: github.ref == 'refs/heads/quarkus-master' || github.base_ref == 'quarkus-master'
-        run: |
-          echo '::set-env name=BRANCH_OPTIONS::-Poss-snapshots -Dquarkus.version=999-SNAPSHOT'
-      - name: Checkout
-        uses: actions/checkout@v2
-      - name: Set up JDK 11
-        uses: AdoptOpenJDK/install-jdk@v1
-        with:
-          version: '11'
-      - name: Download Maven Repo
-        uses: actions/download-artifact@v1
-        with:
-          name: maven-repo
-          path: ..
-      - name: Extract Maven Repo
-        shell: bash
-        run: |
-          df -h /
-          tar -xzf ../maven-repo.tgz -C ~
-          df -h /
-      - name: Install yq
-        run: |
-          sudo wget -O /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_amd64"
-          sudo chmod +x /usr/local/bin/yq
-      - name: Integration Tests
-        env:
-          TEST_MODULES: ${{matrix.test-modules}}
-        run: |
-          TEST_MODULES=""
-          for MODULE in $(cat tooling/scripts/test-categories.yaml | yq r - "${{ matrix.category }}.*"); do
-            if [ "${MODULE}" == "-" ]; then
-              continue
-            fi
-            TEST_MODULES="${TEST_MODULES} ${MODULE}"
-          done
-          TEST_MODULES=$(echo ${TEST_MODULES} | sed 's/^[ \t]*//;s/[ \t]*$//')
-
-          if [ -z "${TEST_MODULES}" ]; then
-            echo "No test modules were found for category ${{ matrix.category }}"
-            exit 1
-          fi
-
-          for i in $TEST_MODULES
-          do modules+=("integration-tests/$i"); done
-          IFS=,
-          eval ./mvnw -V -ntp ${BRANCH_OPTIONS} clean verify \
-            -Dformatter.skip -Dimpsort.skip -Denforce=false \
-            -Pnative,docker,ci \
-            -pl "${modules[*]}"
-      - name: Fail if there are uncommitted changes
-        shell: bash
-        run: |
-          [[ -z $(git status --porcelain) ]] || { echo 'There are uncommitted changes'; git status; exit 1; }
-
   examples-tests:
     needs: initial-mvn-install
     runs-on: ubuntu-latest