Commit b5efea8e by Tuomas Riihimäki

Add angular tests to maven lifecycle

1 parent 1cbc86e7
Pipeline #46 passed
in 0 seconds
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"aot": "ng build --aot", "aot": "ng build --aot",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"test-n-build": "ng lint && ng test && ng build",
"e2e": "ng e2e", "e2e": "ng e2e",
"version": "ng version" "version": "ng version"
}, },
......
...@@ -27,36 +27,33 @@ ...@@ -27,36 +27,33 @@
<executions> <executions>
<execution> <execution>
<!-- optional: you don't really need execution ids, <!-- optional: you don't really need execution ids,
but it looks nice in your build log. --> but it looks nice in your build log. -->
<id>install node and npm</id> <id>install node and npm</id>
<goals> <goals>
<goal>install-node-and-npm</goal> <goal>install-node-and-npm</goal>
</goals> </goals>
<configuration> <configuration>
<nodeVersion>${js.node.version}</nodeVersion> <nodeVersion>${js.node.version}</nodeVersion>
<npmVersion>${js.npm.version}</npmVersion> <npmVersion>${js.npm.version}</npmVersion>
</configuration> </configuration>
</execution> </execution>
<execution>
<execution> <id>npm install</id>
<id>npm install</id> <goals>
<goals> <goal>npm</goal>
<goal>npm</goal> </goals>
</goals> </execution>
</execution> <execution>
<id>npm run build</id>
<execution> <goals>
<id>npm run build</id> <goal>npm</goal>
<goals> </goals>
<goal>npm</goal> <phase>generate-resources</phase>
</goals> <configuration>
<phase>generate-resources</phase> <arguments>run test-n-build</arguments>
<configuration> </configuration>
<arguments>run build</arguments> </execution>
</configuration>
</execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!