zipkin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [incubator-zipkin-api] 01/02: feat: test npm with mvn
Date Sun, 05 May 2019 00:39:37 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 3374cd7d79703e272c124ecbb32e8cc7383346c9
Author: Jorge Quilcate Otoya <quilcate.jorge@gmail.com>
AuthorDate: Sun May 5 02:38:32 2019 +0200

    feat: test npm with mvn
---
 pom.xml | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

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