You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2020/08/05 16:22:28 UTC

[accumulo] branch 1.9 updated: Use GitHub Actions for CI testing (#1671)

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

ctubbsii pushed a commit to branch 1.9
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/1.9 by this push:
     new 750286a  Use GitHub Actions for CI testing (#1671)
750286a is described below

commit 750286a3234115ac560605b99c341aacac705c25
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Wed Aug 5 12:22:01 2020 -0400

    Use GitHub Actions for CI testing (#1671)
    
    Add GitHub Actions for CI and remove Travis CI configuration, for the
    1.9/1.10 maintenance branch.
---
 .github/workflows/maven.yaml | 56 ++++++++++++++++++++++++++++++++++++++++++++
 .travis.yml                  | 33 --------------------------
 pom.xml                      |  4 ++--
 3 files changed, 58 insertions(+), 35 deletions(-)

diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
new file mode 100644
index 0000000..d380479
--- /dev/null
+++ b/.github/workflows/maven.yaml
@@ -0,0 +1,56 @@
+#
+# 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.
+#
+
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: QA
+
+on:
+  push:
+    branches: [ 1.9, 1.10 ]
+  pull_request:
+    branches: [ 1.9, 1.10 ]
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        hadoop:
+          - 'hadoop.profile=2'
+          - 'hadoop.profile=3'
+      fail-fast: false
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up JDK 11
+      uses: actions/setup-java@v1
+      with:
+        java-version: 11
+    - name: Cache local maven repository
+      uses: actions/cache@v2
+      with:
+        path: ~/.m2
+        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+        restore-keys: ${{ runner.os }}-m2
+    - name: Build with Maven (${{ matrix.hadoop }})
+      run: mvn -B -V -e "-Dstyle.color=always" verify javadoc:jar -DskipITs "-D${{ matrix.hadoop }}"
+      env:
+        MAVEN_OPTS: -Djansi.force=true
+
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 145e531..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-#  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.
-
-# requiring sudo forces Travis to build in an environment with more RAM
-sudo: required
-language: java
-# speed up builds; don't use cache with default install step
-cache:
-  directories:
-    - $HOME/.m2
-install: echo NOOP Skipping pre-fetch of Maven dependencies
-jdk:
-  - openjdk11
-before_script:
-  - unset _JAVA_OPTIONS
-env:
-  - BUILD_CMD="mvn clean verify javadoc:jar -DskipITs"  # main build of unit tests and javadoc
-  - BUILD_CMD="mvn clean verify javadoc:jar -DskipITs -Dhadoop.profile=3"
-# suppress download logs which cause travis to exceed the 4MB build log output limit
-script:
-  - $BUILD_CMD -B -Dstyle.color=always -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
diff --git a/pom.xml b/pom.xml
index af4fe0a..47260c1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -109,8 +109,8 @@
     <url>https://github.com/apache/accumulo/issues</url>
   </issueManagement>
   <ciManagement>
-    <system>Travis CI</system>
-    <url>https://travis-ci.org/apache/accumulo</url>
+    <system>GitHub Actions</system>
+    <url>https://github.com/apache/accumulo/actions</url>
   </ciManagement>
   <properties>
     <!-- used for filtering the java source with the current version -->