mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
[API] Run npm tests during maven build
This commit is contained in:
parent
39c1a885d8
commit
82094477a3
62
pom.xml
62
pom.xml
@ -80,52 +80,36 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- Get PhantomJS plugin -->
|
<!-- Run specs using npm -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.github.klieber</groupId>
|
<groupId>com.github.eirslett</groupId>
|
||||||
<artifactId>phantomjs-maven-plugin</artifactId>
|
<artifactId>frontend-maven-plugin</artifactId>
|
||||||
<version>0.2.1</version>
|
<version>0.0.26</version>
|
||||||
|
<configuration>
|
||||||
|
<installDirectory>target</installDirectory>
|
||||||
|
<nodeVersion>v0.12.2</nodeVersion>
|
||||||
|
<npmVersion>2.7.6</npmVersion>
|
||||||
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>install node and npm</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>install</goal>
|
<goal>install-node-and-npm</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>npm install</id>
|
||||||
|
<goals>
|
||||||
|
<goal>npm</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>javascript tests</id>
|
||||||
|
<goals>
|
||||||
|
<goal>karma</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
|
||||||
<version>1.9.2</version>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- Run specs -->
|
|
||||||
<!-- https://github.com/detro/phantomjs-jasminexml-example -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
|
||||||
<version>1.1</version>
|
|
||||||
<executions>
|
|
||||||
|
|
||||||
<execution>
|
|
||||||
<id>Jasmine Specs</id>
|
|
||||||
<phase>test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
|
|
||||||
<configuration>
|
|
||||||
<workingDirectory>.</workingDirectory>
|
|
||||||
<arguments>
|
|
||||||
<argument>platform/framework/test/lib/run_jasmine_test.coffee</argument>
|
|
||||||
<argument>test.html</argument>
|
|
||||||
<argument>${project.build.directory}/platform-test-results.html</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<executable>${phantomjs.binary}</executable>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user