Skip to content
Permalink
Browse files
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)
  • Loading branch information
ctubbsii committed Oct 8, 2020
1 parent 9d4a57d commit c00290157059de83619c57d26f2c87d387608b87
Showing 6 changed files with 117 additions and 33 deletions.
@@ -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

@@ -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

@@ -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>
40 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>
@@ -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>
@@ -131,16 +131,6 @@
</dependencies>
<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>
@@ -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>
@@ -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>

0 comments on commit c002901

Please sign in to comment.