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"
}, },
......
...@@ -38,14 +38,12 @@ ...@@ -38,14 +38,12 @@
<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> <execution>
<id>npm run build</id> <id>npm run build</id>
<goals> <goals>
...@@ -53,10 +51,9 @@ ...@@ -53,10 +51,9 @@
</goals> </goals>
<phase>generate-resources</phase> <phase>generate-resources</phase>
<configuration> <configuration>
<arguments>run build</arguments> <arguments>run test-n-build</arguments>
</configuration> </configuration>
</execution> </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!