You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jz...@apache.org on 2022/12/04 11:26:21 UTC
[opennlp-site] branch master updated: OPENNLP-1402 - Replace Travis with GitHub actions on opennlp-site, adds some basic validations to ensure the website is build. (#74)
This is an automated email from the ASF dual-hosted git repository.
jzemerick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp-site.git
The following commit(s) were added to refs/heads/master by this push:
new f73521a8 OPENNLP-1402 - Replace Travis with GitHub actions on opennlp-site, adds some basic validations to ensure the website is build. (#74)
f73521a8 is described below
commit f73521a82489e17ef3f1cd23803b6dcacc9fc316
Author: Richard Zowalla <13...@users.noreply.github.com>
AuthorDate: Sun Dec 4 12:26:16 2022 +0100
OPENNLP-1402 - Replace Travis with GitHub actions on opennlp-site, adds some basic validations to ensure the website is build. (#74)
---
.github/workflows/master.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++
.travis.yml | 24 ------------------
README.md | 2 +-
3 files changed, 60 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
new file mode 100644
index 00000000..483a9ac9
--- /dev/null
+++ b/.github/workflows/master.yml
@@ -0,0 +1,59 @@
+# 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:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+ workflow_dispatch:
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up JDK 8
+ uses: actions/setup-java@v3
+ with:
+ java-version: '8'
+ distribution: 'temurin'
+ cache: maven
+ - name: Build with Maven
+ run: mvn help:system -U -ntp --batch-mode --show-version --fail-at-end clean install
+ - name: basic validations
+ run: |
+ [ -f target/opennlp-site/index.html ] && echo 'index.html exist'
+ [ -d target/opennlp-site/docs/1.5.3 ] && echo 'docs for 1.5.3 exists'
+ [ -d target/opennlp-site/docs/1.6.0 ] && echo 'docs for 1.6.0 exists'
+ [ -d target/opennlp-site/docs/1.7.0 ] && echo 'docs for 1.7.0 exists'
+ [ -d target/opennlp-site/docs/1.7.1 ] && echo 'docs for 1.7.1 exists'
+ [ -d target/opennlp-site/docs/1.7.2 ] && echo 'docs for 1.7.2 exists'
+ [ -d target/opennlp-site/docs/1.8.0 ] && echo 'docs for 1.8.0 exists'
+ [ -d target/opennlp-site/docs/1.8.1 ] && echo 'docs for 1.8.1 exists'
+ [ -d target/opennlp-site/docs/1.8.2 ] && echo 'docs for 1.8.2 exists'
+ [ -d target/opennlp-site/docs/1.8.3 ] && echo 'docs for 1.8.3 exists'
+ [ -d target/opennlp-site/docs/1.8.4 ] && echo 'docs for 1.8.4 exists'
+ [ -d target/opennlp-site/docs/1.9.0 ] && echo 'docs for 1.9.0 exists'
+ [ -d target/opennlp-site/docs/1.9.1 ] && echo 'docs for 1.9.1 exists'
+ [ -d target/opennlp-site/docs/1.9.2 ] && echo 'docs for 1.9.2 exists'
+ [ -d target/opennlp-site/docs/1.9.3 ] && echo 'docs for 1.9.3 exists'
+ [ -d target/opennlp-site/docs/1.9.4 ] && echo 'docs for 1.9.4 exists'
+ [ -d target/opennlp-site/docs/2.0.0 ] && echo 'docs for 2.0.0 exists'
+ [ -d target/opennlp-site/docs/2.1.0 ] && echo 'docs for 2.1.0 exists'
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 8a0b9eee..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-language: java
-os: linux
-jdk: openjdk8
-
-sudo: false
-
-env:
- global:
- # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
- # via the "travis encrypt" command using the project repo's public key
- - secure: "WLRKO/tD2rFN+a/HKSf9iZkaMaFE8/luXcJCXGfewoHysF7LgIJ76AN9HY50woVJykl+T/tEhK5c/+H/IKO5zH8Rvz/Q9XxPTvUTOwH7oFOHCQ66mKTvn27Z4fp+JbkPKJuhWDUzPvS/Alo3wE70UELnFRTFoRsemfNNa95uPJobfx5deOfX80mipHOn16dA1q8LuzQa6iF2HIVuh7ygLleTV0cDJyXmIlg3EbKGEitozIv0WkwALrBjLS7KmCcXTKxXqCm1Be2MFRoh9ab2bEooXlv2zRh2wT0c04RckFm1AJGpGQelXLl3NxxcRJSpIN9OTkpVUfwm28TIXk2SzdgPMrP11yFK/DPKTv0jwyk1bFrmZMMso5Y2rP6wjNEtw5ExYSpk3xebcieLJwXhCwkkWAT3DdAAeXO5z4Nf36lryjRgqvlsVF1ofqAK5Sh+qH93/TJOE+hVEj74xUT9pVaxemY61y [...]
-
-cache:
- directories:
- - $HOME/.m2
-
-before_install:
- - wget http://mirrors.ae-online.de/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- - tar xf apache-maven-3.3.9-bin.tar.gz
- - export M2_HOME=$PWD/apache-maven-3.3.9
- - export PATH=$M2_HOME/bin:$PATH
-
-install: mvn clean install
-
diff --git a/README.md b/README.md
index cbc7b691..eb585e2c 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@
Welcome to OpenNLP Site Source Code
====================================
-[![Build Status](https://api.travis-ci.org/apache/opennlp-site.svg?branch=master)](https://travis-ci.org/apache/opennlp-site)
+[![Build Status](https://github.com/apache/opennlp/workflows/Java%20CI/badge.svg)](https://github.com/apache/opennlp-site/actions)
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/apache/opennlp/master/LICENSE)
[![Twitter Follow](https://img.shields.io/twitter/follow/ApacheOpennlp.svg?style=social)](https://twitter.com/ApacheOpenNLP)