You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fluo.apache.org by ct...@apache.org on 2020/10/08 21:41:06 UTC
[fluo] branch main updated: Migrate from TravisCI to GitHub Actions
(#1104)
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluo.git
The following commit(s) were added to refs/heads/main by this push:
new 75aedda Migrate from TravisCI to GitHub Actions (#1104)
75aedda is described below
commit 75aeddae760e514ce6cd3a59e2866193d117f9c0
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Thu Oct 8 17:40:56 2020 -0400
Migrate from TravisCI to GitHub Actions (#1104)
---
.github/workflows/maven.yaml | 72 ++++++++++++++++++++++++++++++++++++++++++++
.travis.yml | 31 -------------------
README.md | 4 +--
pom.xml | 4 +++
4 files changed, 78 insertions(+), 33 deletions(-)
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
new file mode 100644
index 0000000..882dd9e
--- /dev/null
+++ b/.github/workflows/maven.yaml
@@ -0,0 +1,72 @@
+#
+# 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
+# See also:
+# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: CI
+
+on:
+ push:
+ branches: [ '*' ]
+ pull_request:
+ branches: [ '*' ]
+
+jobs:
+ mvn:
+ timeout-minutes: 60
+ 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/repository/
+ !~/.m2/repository/org/apache/fluo
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - name: Build with Maven
+ run: mvn -B -V -e -ntp "-Dstyle.color=always" verify javadoc:jar
+ env:
+ MAVEN_OPTS: -Djansi.force=true
+ - name: Upload unit test results
+ uses: actions/upload-artifact@v2
+ with:
+ name: surefire-reports
+ path: ./**/target/surefire-reports/
+ if-no-files-found: ignore
+ - name: Upload integration test results
+ uses: actions/upload-artifact@v2
+ with:
+ name: failsafe-reports
+ path: ./**/target/failsafe-reports/
+ if-no-files-found: ignore
+ - name: Upload mini test logs
+ uses: actions/upload-artifact@v2
+ with:
+ name: mini-tests-logs
+ path: ./**/target/**/mini-tests/**/logs/
+ if-no-files-found: ignore
+
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index a1120c9..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,31 +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"
-script:
- - $BUILD_CMD -B -Dstyle.color=always -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
diff --git a/README.md b/README.md
index dedcc04..0bf70ea 100644
--- a/README.md
+++ b/README.md
@@ -38,8 +38,8 @@ for news and general information.
[Apache Accumulo]: https://accumulo.apache.org
[Percolator]: https://research.google.com/pubs/pub36726.html
[fluo-docs]: https://fluo.apache.org/docs/
-[ti]: https://travis-ci.org/apache/fluo.svg?branch=main
-[tl]: https://travis-ci.org/apache/fluo
+[ti]: https://github.com/apache/fluo/workflows/CI/badge.svg
+[tl]: https://github.com/apache/fluo/actions
[li]: http://img.shields.io/badge/license-ASL-blue.svg
[ll]: https://github.com/apache/fluo/blob/main/LICENSE
[mi]: https://maven-badges.herokuapp.com/maven-central/org.apache.fluo/fluo-api/badge.svg
diff --git a/pom.xml b/pom.xml
index 1276bd5..d7128d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,6 +52,10 @@
<system>GitHub</system>
<url>https://github.com/apache/fluo/issues</url>
</issueManagement>
+ <ciManagement>
+ <system>GitHub Actions</system>
+ <url>https://github.com/apache/fluo/actions</url>
+ </ciManagement>
<properties>
<accumulo.version>2.0.0</accumulo.version>
<curator.version>4.0.1</curator.version>