|
96 | 96 | </resource>
|
97 | 97 | </resources>
|
98 | 98 |
|
| 99 | + <pluginManagement> |
| 100 | + <plugins> |
| 101 | + <groupId>org.codehaus.mojo</groupId> |
| 102 | + <artifactId>exec-maven-plugin</artifactId> |
| 103 | + <version>3.0.0</version> |
| 104 | + </plugins> |
| 105 | + </pluginManagement> |
| 106 | + |
99 | 107 | <plugins>
|
100 | 108 | <plugin>
|
101 | 109 | <groupId>com.github.eirslett</groupId>
|
|
139 | 147 | </goals>
|
140 | 148 | <phase>compile</phase>
|
141 | 149 | </execution>
|
| 150 | + <!-- Mocha is used for integration tests of xqsuite --> |
142 | 151 | <execution>
|
143 | 152 | <id>mocha tests</id>
|
144 | 153 | <goals>
|
145 | 154 | <goal>npm</goal>
|
146 | 155 | </goals>
|
147 |
| - <phase>test</phase> |
| 156 | + <phase>integration-test</phase> |
148 | 157 | <configuration>
|
149 | 158 | <arguments>test</arguments>
|
150 | 159 | </configuration>
|
|
238 | 247 | </execution>
|
239 | 248 | </executions>
|
240 | 249 | </plugin>
|
| 250 | + <!-- start up Server in Docker for integration-test --> |
| 251 | + <plugin> |
| 252 | + <groupId>io.fabric8</groupId> |
| 253 | + <artifactId>docker-maven-plugin</artifactId> |
| 254 | + <version>0.35.0</version> |
| 255 | + <configuration> |
| 256 | + <verbose>true</verbose> |
| 257 | + <images> |
| 258 | + <image> |
| 259 | + <alias>existdb-docs-tests</alias> |
| 260 | + <name>existdb/existdb:latest</name> |
| 261 | + <run> |
| 262 | + <ports> |
| 263 | + <port>8080:8080</port> |
| 264 | + </ports> |
| 265 | + <wait> |
| 266 | + <log>Server has started, listening on</log> |
| 267 | + <time>120000</time> |
| 268 | + </wait> |
| 269 | + </run> |
| 270 | + </image> |
| 271 | + </images> |
| 272 | + </configuration> |
| 273 | + <executions> |
| 274 | + <execution> |
| 275 | + <id>docker-it-start</id> |
| 276 | + <phase>pre-integration-test</phase> |
| 277 | + <goals> |
| 278 | + <goal>start</goal> |
| 279 | + </goals> |
| 280 | + </execution> |
| 281 | + <execution> |
| 282 | + <id>docker-it-stop</id> |
| 283 | + <phase>post-integration-test</phase> |
| 284 | + <goals> |
| 285 | + <goal>stop</goal> |
| 286 | + </goals> |
| 287 | + </execution> |
| 288 | + </executions> |
| 289 | + </plugin> |
| 290 | + <!-- Cypress is used for integration tests --> |
| 291 | + <plugin> |
| 292 | + <groupId>org.codehaus.mojo</groupId> |
| 293 | + <artifactId>exec-maven-plugin</artifactId> |
| 294 | + <executions> |
| 295 | + <execution> |
| 296 | + <phase>integration-test</phase> |
| 297 | + <goals> |
| 298 | + <goal>exec</goal> |
| 299 | + </goals> |
| 300 | + <configuration> |
| 301 | + <executable>npm</executable> |
| 302 | + <arguments> |
| 303 | + <argument>run</argument> |
| 304 | + <argument>cypress</argument> |
| 305 | + <argument>--</argument> |
| 306 | + </arguments> |
| 307 | + </configuration> |
| 308 | + </execution> |
| 309 | + </executions> |
| 310 | + </plugin> |
241 | 311 | <plugin>
|
242 | 312 | <groupId>org.apache.maven.plugins</groupId>
|
243 | 313 | <artifactId>maven-gpg-plugin</artifactId>
|
|
272 | 342 | <url>http://clojars.org/repo</url>
|
273 | 343 | </pluginRepository>
|
274 | 344 | </pluginRepositories>
|
| 345 | + |
275 | 346 | </project>
|
0 commit comments