You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by sm...@apache.org on 2017/07/05 12:27:31 UTC

[opennlp-site] branch master updated: Enable travis CI for Opennlp-site

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

smarthi 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 ff297f3  Enable travis CI for Opennlp-site
ff297f3 is described below

commit ff297f3745158e28ccb28f8113a1f4fd12c6b833
Author: smarthi <sm...@apache.org>
AuthorDate: Wed Jul 5 07:40:57 2017 -0400

    Enable travis CI for Opennlp-site
---
 .travis.yml | 23 +++++++++++++++++++++++
 README.md   |  4 ++++
 pom.xml     | 20 ++++++++++++++------
 3 files changed, 41 insertions(+), 6 deletions(-)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..87c4cd3
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,23 @@
+language: java
+os: linux
+jdk: oraclejdk8
+
+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 package jbake:inline -Djbake.port=8080 -Djbake.listenAddress=0.0.0.0
diff --git a/README.md b/README.md
index 0fd4937..8519d13 100644
--- a/README.md
+++ b/README.md
@@ -20,4 +20,8 @@
 Welcome to the OpenNLP Site source code
 =======================================
 
+[![Build Status](https://api.travis-ci.org/apache/opennlp.svg?branch=master)](https://travis-ci.org/apache/opennlp-site)
+[![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)
+
 `mvn clean package jbake:inline -Djbake.port=8080 -Djbake.listenAddress=0.0.0.0`
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index dd72903..93385e8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,6 +29,16 @@
   <name>Apache OpenNLP Web Site</name>
   <version>0.1-SNAPSHOT</version>
 
+  <properties>
+    <!-- Build Properties -->
+    <jbake-core.version>2.5.1</jbake-core.version>
+    <maven.compiler.target>1.8</maven.compiler.target>
+    <maven.version>3.3.9</maven.version>
+    <pegdown.version>1.6.0</pegdown.version>
+    <asciidoctor.version>1.5.5</asciidoctor.version>
+    <freemarker.version>2.3.25-incubating</freemarker.version>
+  </properties>
+
   <build>
     <finalName>opennlp-site</finalName>
 
@@ -45,25 +55,25 @@
           <dependency>
             <groupId>org.jbake</groupId>
             <artifactId>jbake-core</artifactId>
-            <version>2.5.1</version>
+            <version>${jbake-core.version}</version>
           </dependency>
           <!-- for freemarker templates (.ftl) -->
           <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
-            <version>2.3.25-incubating</version>
+            <version>${freemarker.version}</version>
           </dependency>
           <!-- for markdown parsing (.md) -->
           <dependency>
             <groupId>org.pegdown</groupId>
             <artifactId>pegdown</artifactId>
-            <version>1.6.0</version>
+            <version>${pegdown.version}</version>
           </dependency>
 
           <dependency>
             <groupId>org.asciidoctor</groupId>
             <artifactId>asciidoctorj</artifactId>
-            <version>1.5.5</version>
+            <version>${asciidoctor.version}</version>
           </dependency>
 
         </dependencies>
@@ -161,8 +171,6 @@
                         <include name="**/manual/opennlp.html"/>
                       </fileset>
                     </replaceregexp>
-
-
                   </sequential>
                 </ac:for>
  

-- 
To stop receiving notification emails like this one, please contact
['"commits@opennlp.apache.org" <co...@opennlp.apache.org>'].