zipkin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adrianc...@apache.org
Subject [incubator-zipkin-api] branch master updated: Tests with Jenkins (#73)
Date Mon, 06 May 2019 03:59:27 GMT
This is an automated email from the ASF dual-hosted git repository.

adriancole pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-zipkin-api.git


The following commit(s) were added to refs/heads/master by this push:
     new bc3cd4a  Tests with Jenkins (#73)
bc3cd4a is described below

commit bc3cd4af4108f2ff7522d0c2782a6bb856bc05dd
Author: Jorge Quilcate Otoya <quilcate.jorge@gmail.com>
AuthorDate: Mon May 6 05:59:23 2019 +0200

    Tests with Jenkins (#73)
---
 Jenkinsfile |  6 ++++++
 pom.xml     | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 9a05384..ba4adf3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -50,6 +50,12 @@ pipeline {
             }
         }
 
+        stage('Test') {
+            steps {
+                sh './mvnw test -B'
+            }
+        }
+
         stage('Publish snapshot') {
             when {
                 branch 'master'
diff --git a/pom.xml b/pom.xml
index e852d70..ad46076 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,7 @@
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 
     <main.basedir>${project.basedir}</main.basedir>
+    <frontend-maven-plugin.version>1.7.5</frontend-maven-plugin.version>
   </properties>
 
   <name>zipkin-proto3</name>
@@ -156,6 +157,7 @@
             <exclude>Jenkinsfile</exclude>
             <exclude>package.json</exclude>
             <exclude>**/*.md</exclude>
+            <exclude>**/node_modules/**</exclude>
           </excludes>
           <strictCheck>true</strictCheck>
         </configuration>
@@ -170,6 +172,43 @@
       </plugin>
 
       <plugin>
+        <groupId>com.github.eirslett</groupId>
+        <artifactId>frontend-maven-plugin</artifactId>
+        <version>${frontend-maven-plugin.version}</version>
+        <configuration>
+          <installDirectory>target</installDirectory>
+          <nodeVersion>v10.15.1</nodeVersion>
+        </configuration>
+        <executions>
+          <execution>
+            <id>install node and npm</id>
+            <goals>
+              <goal>install-node-and-npm</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>npm install</id>
+            <goals>
+              <goal>npm</goal>
+            </goals>
+            <configuration>
+              <arguments>install</arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>npm run test</id>
+            <goals>
+              <goal>npm</goal>
+            </goals>
+            <phase>test</phase>
+            <configuration>
+              <arguments>run test</arguments>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+	  <plugin>
         <artifactId>maven-enforcer-plugin</artifactId>
         <version>3.0.0-M2</version>
         <executions>
@@ -221,6 +260,8 @@
 
             <!-- NPM files -->
             <exclude>**/package.json</exclude>
+            <exclude>**/package-lock.json</exclude>
+            <exclude>**/node_modules/**</exclude>
 
             <!-- Maven Wrapper generated files -->
             <exclude>.mvn/wrapper/maven-wrapper.properties</exclude>


Mime
View raw message