You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/07/03 21:30:26 UTC

[maven] branch testFor363 created (now b3b8266)

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

slachiewicz pushed a change to branch testFor363
in repository https://gitbox.apache.org/repos/asf/maven.git.


      at b3b8266  Build with Maven 3.6.3 - test Windows builds

This branch includes the following new commits:

     new c9d1788  [MNG-6949] Add a GitHub Actions Workflow for building and integration testing changes
     new 3b442ba  [MNG-6949] Run integration tests on large matrix, build on small one.
     new b3b8266  Build with Maven 3.6.3 - test Windows builds

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven] 02/03: [MNG-6949] Run integration tests on large matrix, build on small one.

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch testFor363
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 3b442badfc0a55ba577a699c27198cddde8da0f7
Author: Maarten Mulders <ma...@infosupport.com>
AuthorDate: Wed Jul 1 11:30:40 2020 +0200

    [MNG-6949] Run integration tests on large matrix, build on small one.
    
    Integration tests now run on Java 8, 11 and 14 with Windows, macOS and Linux.
---
 .github/workflows/maven.yml | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 19f254a..4072108 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -24,7 +24,6 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest, windows-latest, macOS-latest]
-        java: [8, 11, 14]
       fail-fast: false
 
     runs-on: ${{ matrix.os }}
@@ -37,36 +36,40 @@ jobs:
         uses: actions/cache@v1
         with:
           path: ~/.m2/repository
-          key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
+          key: maven-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
-            maven-${{ matrix.os }}-java${{ matrix.java }}-
             maven-${{ matrix.os }}-
 
       - name: Set up JDK
         uses: actions/setup-java@v1
         with:
-          java-version: ${{ matrix.java }}
+          java-version: 8
 
       - name: Build with Maven
         run: mvn verify -e -B -V -DdistributionFileName=apache-maven
 
       - name: Upload built Maven
         uses: actions/upload-artifact@v2
-        if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == '11' }}
+        if: ${{ matrix.os == 'ubuntu-latest' }}
         with:
           name: built-maven
           path: apache-maven/target/
 
       - name: Upload built Maven Wrapper
         uses: actions/upload-artifact@v2
-        if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == '11' }}
+        if: ${{ matrix.os == 'ubuntu-latest' }}
         with:
           name: built-maven-wrapper
           path: maven-wrapper/target/maven-wrapper.jar
 
   integration-test:
     needs: build
-    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        os: [ubuntu-latest, windows-latest, macOS-latest]
+        java: [8, 11, 14]
+      fail-fast: false
+    runs-on: ${{ matrix.os }}
 
     steps:
       - name: Collect environment context variables
@@ -112,5 +115,11 @@ jobs:
           name: built-maven-wrapper
           path: built-maven-wrapper/
 
+      - name: Set up JDK
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.java }}
+
       - name: Running integration tests
-        run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local=$GITHUB_WORKSPACE/repo/ -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -DwrapperDistroDir="$GITHUB_WORKSPACE/built-maven/" -DmavenWrapper="$GITHUB_WORKSPACE/built-maven-wrapper/maven-wrapper.jar" -f maven-integration-testing/pom.xml
+        shell: bash
+        run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local=$GITHUB_WORKSPACE/repo/ -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -DwrapperDistroDir="$GITHUB_WORKSPACE/built-maven/" -DmavenWrapper="$GITHUB_WORKSPACE/built-maven-wrapper/maven-wrapper.jar" -f maven-integration-testing/pom.xml
\ No newline at end of file


[maven] 03/03: Build with Maven 3.6.3 - test Windows builds

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch testFor363
in repository https://gitbox.apache.org/repos/asf/maven.git

commit b3b8266b045879dd810819f2d9c4030a05dcbc0a
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Thu Apr 16 23:08:06 2020 +0200

    Build with Maven 3.6.3 - test Windows builds
---
 Jenkinsfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 278a19d..5786cea 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,10 +21,10 @@ properties([buildDiscarder(logRotator(artifactNumToKeepStr: '5', numToKeepStr: e
 
 def buildOs = 'linux'
 def buildJdk = '8'
-def buildMvn = '3.6.2'
+def buildMvn = '3.6.3'
 def runITsOses = ['linux', 'windows']
 def runITsJdks = ['8', '11', '14', '15']
-def runITsMvn = '3.6.2'
+def runITsMvn = '3.6.3'
 def runITscommand = "mvn clean install -Prun-its,embedded -B -U -V" // -DmavenDistro=... -Dmaven.test.failure.ignore=true
 def tests
 


[maven] 01/03: [MNG-6949] Add a GitHub Actions Workflow for building and integration testing changes

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch testFor363
in repository https://gitbox.apache.org/repos/asf/maven.git

commit c9d1788f76ae10f65886e1e4c3fda0a493e29c5e
Author: Martin Kanters <mk...@gmail.com>
AuthorDate: Sun Jun 28 22:12:55 2020 +0200

    [MNG-6949] Add a GitHub Actions Workflow for building and integration testing changes
---
 .github/workflows/maven.yml | 116 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 116 insertions(+)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..19f254a
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,116 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: Java CI
+
+on: [push, pull_request]
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [ubuntu-latest, windows-latest, macOS-latest]
+        java: [8, 11, 14]
+      fail-fast: false
+
+    runs-on: ${{ matrix.os }}
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+
+      - name: Set up cache for ~./m2/repository
+        uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository
+          key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            maven-${{ matrix.os }}-java${{ matrix.java }}-
+            maven-${{ matrix.os }}-
+
+      - name: Set up JDK
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.java }}
+
+      - name: Build with Maven
+        run: mvn verify -e -B -V -DdistributionFileName=apache-maven
+
+      - name: Upload built Maven
+        uses: actions/upload-artifact@v2
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == '11' }}
+        with:
+          name: built-maven
+          path: apache-maven/target/
+
+      - name: Upload built Maven Wrapper
+        uses: actions/upload-artifact@v2
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == '11' }}
+        with:
+          name: built-maven-wrapper
+          path: maven-wrapper/target/maven-wrapper.jar
+
+  integration-test:
+    needs: build
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Collect environment context variables
+        shell: bash
+        run: |
+          set +e
+          repo=maven-integration-testing
+          user=${GITHUB_REPOSITORY%/*}
+          branch=${GITHUB_REF#refs/heads/}
+          target_branch=master
+          target_user=apache
+          if [ $branch != "master" ]; then
+            git ls-remote https://github.com/$user/$repo.git | grep $GITHUB_REF > /dev/null
+            if [ $? -eq 0 ]; then
+              echo "Found a branch \"$branch\" in fork \"$user/$repo\", configuring this for the integration tests to be run against."
+              target_branch=$branch
+              target_user=$user
+            else
+              echo "Could not find fork \"$user/$repo\" or a branch \"$branch\" in this fork. Falling back to \"$target_branch\" in \"$target_user/$repo\"."
+            fi
+          else
+            echo "Integration tests will run against $target_user/$repo for master builds."
+          fi
+          echo "::set-env name=REPO_BRANCH::$target_branch"
+          echo "::set-env name=REPO_USER::$target_user"
+
+      - name: Checkout maven-integration-testing
+        uses: actions/checkout@v2
+        with:
+          repository: ${{ env.REPO_USER }}/maven-integration-testing
+          path: maven-integration-testing/
+          ref: ${{ env.REPO_BRANCH }}
+
+      - name: Download built Maven
+        uses: actions/download-artifact@v2
+        with:
+          name: built-maven
+          path: built-maven/
+
+      - name: Download built Maven Wrapper
+        uses: actions/download-artifact@v2
+        with:
+          name: built-maven-wrapper
+          path: built-maven-wrapper/
+
+      - name: Running integration tests
+        run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local=$GITHUB_WORKSPACE/repo/ -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -DwrapperDistroDir="$GITHUB_WORKSPACE/built-maven/" -DmavenWrapper="$GITHUB_WORKSPACE/built-maven-wrapper/maven-wrapper.jar" -f maven-integration-testing/pom.xml