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:42:05 UTC
[fluo-examples] branch main updated: Migrate from TravisCI to
GitHub Actions (#14)
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-examples.git
The following commit(s) were added to refs/heads/main by this push:
new c002901 Migrate from TravisCI to GitHub Actions (#14)
c002901 is described below
commit c00290157059de83619c57d26f2c87d387608b87
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Thu Oct 8 17:41:59 2020 -0400
Migrate from TravisCI to GitHub Actions (#14)
* Make minimal changes to ensure it builds with JDK 11
* Disable (temporary) findbugs and ITs during the CI build until those
are fixed (not included as part of this change)
---
.github/workflows/maven.yaml | 66 ++++++++++++++++++++++++++++++++++++++++++++
README.md | 10 ++++++-
phrasecount/pom.xml | 14 ++--------
pom.xml | 40 ++++++++++++++++++++++++---
stresso/pom.xml | 18 +++---------
webindex/pom.xml | 2 --
6 files changed, 117 insertions(+), 33 deletions(-)
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
new file mode 100644
index 0000000..6bc4722
--- /dev/null
+++ b/.github/workflows/maven.yaml
@@ -0,0 +1,66 @@
+#
+# 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 -DskipITs -Dfindbugs.skip # TODO fix/enable findbugs/ITs
+ 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
+
diff --git a/README.md b/README.md
index 51a11eb..dffbd85 100644
--- a/README.md
+++ b/README.md
@@ -15,4 +15,12 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
-Examples for Apache Fluo
+# Examples for Apache Fluo
+
+[![Build Status][ti]][tl] [![Apache License][li]][ll]
+
+[ti]: https://github.com/apache/fluo-examples/workflows/CI/badge.svg
+[tl]: https://github.com/apache/fluo-examples/actions
+[li]: http://img.shields.io/badge/license-ASL-blue.svg
+[ll]: https://github.com/apache/fluo-examples/blob/main/LICENSE
+
diff --git a/phrasecount/pom.xml b/phrasecount/pom.xml
index 00f721a..2782ec6 100644
--- a/phrasecount/pom.xml
+++ b/phrasecount/pom.xml
@@ -28,10 +28,9 @@
<name>phrasecount</name>
<url>https://github.com/astralway/phrasecount</url>
<properties>
- <accumulo.version>1.7.2</accumulo.version>
+ <accumulo.version>1.10.0</accumulo.version>
<fluo-recipes.version>1.0.0-incubating</fluo-recipes.version>
<fluo.version>1.0.0-incubating</fluo.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
@@ -91,16 +90,7 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <optimize>true</optimize>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<configuration>
diff --git a/pom.xml b/pom.xml
index 50fbc8e..9b452ae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,7 +17,6 @@
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
-
<parent>
<groupId>org.apache.fluo</groupId>
<artifactId>fluo-parent</artifactId>
@@ -27,15 +26,48 @@
<artifactId>fluo-examples</artifactId>
<version>1-SNAPSHOT</version>
<packaging>pom</packaging>
-
<name>Fluo Examples</name>
<description>This repo contains several example applications for Apache Fluo</description>
<url>https://fluo.apache.org</url>
-
<modules>
<module>stresso</module>
<module>phrasecount</module>
<module>webindex</module>
</modules>
-
+ <properties>
+ <maven.compiler.release>8</maven.compiler.release>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.8.1</version>
+ <configuration>
+ <optimize>true</optimize>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>3.0.0-M3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>3.2.0</version>
+ <configuration>
+ <quiet>true</quiet>
+ <additionalJOption>-J-Xmx512m</additionalJOption>
+ <doclint>all,-missing</doclint>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
</project>
diff --git a/stresso/pom.xml b/stresso/pom.xml
index bc3c66d..04c06fa 100644
--- a/stresso/pom.xml
+++ b/stresso/pom.xml
@@ -29,8 +29,8 @@
<description>This repo contains an example application designed to stress Apache Fluo</description>
<url>https://github.com/astralway/stresso</url>
<properties>
- <accumulo-plugin.version>2.0.0-SNAPSHOT</accumulo-plugin.version>
- <accumulo.version>2.0.0-alpha-2</accumulo.version>
+ <accumulo.version>2.0.0</accumulo.version>
+ <accumulo2-plugin.version>1.0.0</accumulo2-plugin.version>
<fluo-recipes.version>1.2.0</fluo-recipes.version>
<fluo.version>1.2.0</fluo.version>
<hadoop.version>3.1.1</hadoop.version>
@@ -132,16 +132,6 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <optimize>true</optimize>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M1</version>
@@ -209,8 +199,8 @@
<plugins>
<plugin>
<groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-maven-plugin</artifactId>
- <version>${accumulo-plugin.version}</version>
+ <artifactId>accumulo2-maven-plugin</artifactId>
+ <version>${accumulo2-plugin.version}</version>
<configuration>
<instanceName>it-instance-maven</instanceName>
<rootPassword>ITSecret</rootPassword>
diff --git a/webindex/pom.xml b/webindex/pom.xml
index a0f1929..3d1199b 100644
--- a/webindex/pom.xml
+++ b/webindex/pom.xml
@@ -39,8 +39,6 @@
<fluo-recipes.version>1.1.0-incubating</fluo-recipes.version>
<fluo.version>1.2.0</fluo.version>
<hadoop.version>2.6.3</hadoop.version>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
<spark.version>1.6.2</spark.version>
<thrift.version>0.9.1</thrift.version>
</properties>