|
96 | 96 | </resource>
|
97 | 97 | </resources>
|
98 | 98 |
|
| 99 | + <pluginManagement> |
| 100 | + <plugins> |
| 101 | + <plugin> |
| 102 | + <groupId>org.codehaus.mojo</groupId> |
| 103 | + <artifactId>exec-maven-plugin</artifactId> |
| 104 | + <version>3.0.0</version> |
| 105 | + </plugin> |
| 106 | + </plugins> |
| 107 | + </pluginManagement> |
| 108 | + |
99 | 109 | <plugins>
|
100 | 110 | <plugin>
|
101 | 111 | <groupId>com.github.eirslett</groupId>
|
|
139 | 149 | </goals>
|
140 | 150 | <phase>compile</phase>
|
141 | 151 | </execution>
|
| 152 | + <!-- Mocha is used for integration tests of xqsuite --> |
142 | 153 | <execution>
|
143 | 154 | <id>mocha tests</id>
|
144 | 155 | <goals>
|
145 | 156 | <goal>npm</goal>
|
146 | 157 | </goals>
|
147 |
| - <phase>test</phase> |
| 158 | + <phase>integration-test</phase> |
148 | 159 | <configuration>
|
149 | 160 | <arguments>test</arguments>
|
150 | 161 | </configuration>
|
|
238 | 249 | </execution>
|
239 | 250 | </executions>
|
240 | 251 | </plugin>
|
| 252 | + <!-- start up Server in Docker for integration-test --> |
| 253 | + <plugin> |
| 254 | + <groupId>io.fabric8</groupId> |
| 255 | + <artifactId>docker-maven-plugin</artifactId> |
| 256 | + <version>0.35.0</version> |
| 257 | + <configuration> |
| 258 | + <verbose>true</verbose> |
| 259 | + <images> |
| 260 | + <image> |
| 261 | + <alias>existdb-docs-tests</alias> |
| 262 | + <name>existdb/existdb:latest</name> |
| 263 | + <run> |
| 264 | + <ports> |
| 265 | + <port>8080:8080</port> |
| 266 | + </ports> |
| 267 | + <wait> |
| 268 | + <log>Server has started, listening on</log> |
| 269 | + <time>120000</time> |
| 270 | + </wait> |
| 271 | + </run> |
| 272 | + </image> |
| 273 | + </images> |
| 274 | + </configuration> |
| 275 | + <executions> |
| 276 | + <execution> |
| 277 | + <id>docker-it-start</id> |
| 278 | + <phase>pre-integration-test</phase> |
| 279 | + <goals> |
| 280 | + <goal>start</goal> |
| 281 | + </goals> |
| 282 | + </execution> |
| 283 | + <execution> |
| 284 | + <id>docker-it-stop</id> |
| 285 | + <phase>post-integration-test</phase> |
| 286 | + <goals> |
| 287 | + <goal>stop</goal> |
| 288 | + </goals> |
| 289 | + </execution> |
| 290 | + </executions> |
| 291 | + </plugin> |
241 | 292 | <plugin>
|
242 | 293 | <groupId>org.apache.maven.plugins</groupId>
|
243 | 294 | <artifactId>maven-gpg-plugin</artifactId>
|
|
259 | 310 | </plugins>
|
260 | 311 | </build>
|
261 | 312 |
|
262 |
| - <repositories> |
263 |
| - <repository> |
264 |
| - <id>exist</id> |
265 |
| - <url>https://raw.github.com/eXist-db/mvn-repo/master/</url> |
266 |
| - </repository> |
267 |
| - </repositories> |
| 313 | + <!-- |
| 314 | + Cypress is used for integration tests |
| 315 | +
|
| 316 | + First profile enables to run Cypress without record (cypress.io) support. |
| 317 | + Second profile enables to run Cypress with record support, e.g. for CI. |
| 318 | + --> |
| 319 | + <profiles> |
| 320 | + <profile> |
| 321 | + <id>cypress-without-record</id> |
| 322 | + <activation> |
| 323 | + <property> |
| 324 | + <name>env.CI</name> |
| 325 | + <value>!true</value> |
| 326 | + </property> |
| 327 | + </activation> |
| 328 | + <build> |
| 329 | + <plugins> |
| 330 | + <plugin> |
| 331 | + <groupId>org.codehaus.mojo</groupId> |
| 332 | + <artifactId>exec-maven-plugin</artifactId> |
| 333 | + <executions> |
| 334 | + <execution> |
| 335 | + <phase>integration-test</phase> |
| 336 | + <goals> |
| 337 | + <goal>exec</goal> |
| 338 | + </goals> |
| 339 | + <configuration> |
| 340 | + <executable>npm</executable> |
| 341 | + <arguments> |
| 342 | + <argument>run</argument> |
| 343 | + <argument>cypress</argument> |
| 344 | + <argument>--</argument> |
| 345 | + </arguments> |
| 346 | + </configuration> |
| 347 | + </execution> |
| 348 | + </executions> |
| 349 | + </plugin> |
| 350 | + </plugins> |
| 351 | + </build> |
| 352 | + </profile> |
| 353 | + <profile> |
| 354 | + <id>cypress-with-record</id> |
| 355 | + <activation> |
| 356 | + <property> |
| 357 | + <name>env.CI</name> |
| 358 | + <value>true</value> |
| 359 | + </property> |
| 360 | + </activation> |
| 361 | + <build> |
| 362 | + <plugins> |
| 363 | + <plugin> |
| 364 | + <groupId>org.codehaus.mojo</groupId> |
| 365 | + <artifactId>exec-maven-plugin</artifactId> |
| 366 | + <executions> |
| 367 | + <execution> |
| 368 | + <phase>integration-test</phase> |
| 369 | + <goals> |
| 370 | + <goal>exec</goal> |
| 371 | + </goals> |
| 372 | + <configuration> |
| 373 | + <executable>npm</executable> |
| 374 | + <arguments> |
| 375 | + <argument>run</argument> |
| 376 | + <argument>cypress</argument> |
| 377 | + <argument>--</argument> |
| 378 | + <argument>--record</argument> |
| 379 | + </arguments> |
| 380 | + </configuration> |
| 381 | + </execution> |
| 382 | + </executions> |
| 383 | + </plugin> |
| 384 | + </plugins> |
| 385 | + </build> |
| 386 | + </profile> |
| 387 | + </profiles> |
268 | 388 |
|
269 | 389 | <pluginRepositories>
|
270 | 390 | <pluginRepository>
|
271 | 391 | <id>clojars.org</id>
|
272 | 392 | <url>http://clojars.org/repo</url>
|
273 | 393 | </pluginRepository>
|
274 | 394 | </pluginRepositories>
|
| 395 | + |
275 | 396 | </project>
|
0 commit comments