|
22 | 22 | <spring.version>6.1.12</spring.version>
|
23 | 23 |
|
24 | 24 | <!-- Project setup -->
|
25 |
| - <citrus.remote.phase>none</citrus.remote.phase> |
| 25 | + <citrus.remote.report.directory>citrus-remote</citrus.remote.report.directory> |
| 26 | + <citrus.remote.test.phase>none</citrus.remote.test.phase> |
| 27 | + <citrus.remote.verify.phase>none</citrus.remote.verify.phase> |
26 | 28 |
|
27 | 29 | <docker.build.phase>none</docker.build.phase>
|
| 30 | + <docker.copy.phase>none</docker.copy.phase> |
28 | 31 | <docker.remove.phase>none</docker.remove.phase>
|
29 | 32 | <docker.start.phase>none</docker.start.phase>
|
30 | 33 | <docker.stop.phase>none</docker.stop.phase>
|
|
56 | 59 | </goals>
|
57 | 60 | <phase>package</phase>
|
58 | 61 | <configuration>
|
59 |
| - <assembly> |
60 |
| - <descriptor> |
61 |
| - <inline> |
62 |
| - <id>citrus-tests</id> |
63 |
| - <formats> |
64 |
| - <format>jar</format> |
65 |
| - </formats> |
66 |
| - <includeBaseDirectory>false</includeBaseDirectory> |
67 |
| - <dependencySets> |
68 |
| - <dependencySet> |
69 |
| - <outputDirectory>/</outputDirectory> |
70 |
| - <useProjectArtifact>false</useProjectArtifact> |
71 |
| - <useProjectAttachments>true</useProjectAttachments> |
72 |
| - <unpack>true</unpack> |
73 |
| - <scope>test</scope> |
74 |
| - </dependencySet> |
75 |
| - </dependencySets> |
76 |
| - <!-- Workaround for --> |
77 |
| - <!-- https://github.com/citrusframework/citrus-remote/issues/2 --> |
78 |
| - <!-- if the issue is fixed, the whole descriptor-section can be removed. --> |
79 |
| - <containerDescriptorHandlers> |
80 |
| - <containerDescriptorHandler> |
81 |
| - <handlerName>metaInf-spring</handlerName> |
82 |
| - </containerDescriptorHandler> |
83 |
| - </containerDescriptorHandlers> |
84 |
| - </inline> |
85 |
| - </descriptor> |
86 |
| - </assembly> |
87 | 62 | <mainClass>org.citrusframework.remote.sample.entrypoint.CustomEntrypoint</mainClass>
|
88 | 63 | </configuration>
|
89 | 64 | </execution>
|
90 | 65 | <execution>
|
91 | 66 | <id>trigger-citrus-remote</id>
|
92 | 67 | <goals>
|
93 | 68 | <goal>test</goal>
|
94 |
| - <goal>verify</goal> |
95 | 69 | </goals>
|
96 |
| - <phase>${citrus.remote.phase}</phase> |
| 70 | + <phase>${citrus.remote.test.phase}</phase> |
97 | 71 | <configuration>
|
98 | 72 | <server>
|
99 | 73 | <url>http://localhost:4567</url>
|
|
104 | 78 | <pollingInterval>15000</pollingInterval>
|
105 | 79 | </run>
|
106 | 80 | <report>
|
107 |
| - <directory>citrus-remote</directory> |
| 81 | + <directory>${citrus.remote.report.directory}</directory> |
| 82 | + </report> |
| 83 | + </configuration> |
| 84 | + </execution> |
| 85 | + <execution> |
| 86 | + <id>verify-citrus-remote-tests</id> |
| 87 | + <goals> |
| 88 | + <goal>verify</goal> |
| 89 | + </goals> |
| 90 | + <phase>${citrus.remote.verify.phase}</phase> |
| 91 | + <configuration> |
| 92 | + <report> |
| 93 | + <directory>${citrus.remote.report.directory}</directory> |
108 | 94 | </report>
|
109 | 95 | </configuration>
|
110 | 96 | </execution>
|
|
190 | 176 | <goals>
|
191 | 177 | <goal>copy</goal>
|
192 | 178 | </goals>
|
193 |
| - <phase>${citrus.remote.phase}</phase> |
| 179 | + <phase>${docker.copy.phase}</phase> |
194 | 180 | </execution>
|
195 | 181 | <execution>
|
196 | 182 | <id>stop-container</id>
|
|
322 | 308 | <profile>
|
323 | 309 | <id>docker</id>
|
324 | 310 | <properties>
|
325 |
| - <citrus.remote.phase>integration-test</citrus.remote.phase> |
| 311 | + <citrus.remote.test.phase>integration-test</citrus.remote.test.phase> |
| 312 | + <citrus.remote.verify.phase>verify</citrus.remote.verify.phase> |
326 | 313 |
|
327 | 314 | <docker.build.phase>pre-integration-test</docker.build.phase>
|
| 315 | + <docker.copy.phase>post-integration-test</docker.copy.phase> |
328 | 316 | <docker.remove.phase>post-integration-test</docker.remove.phase>
|
329 | 317 | <docker.start.phase>pre-integration-test</docker.start.phase>
|
330 | 318 | <docker.stop.phase>post-integration-test</docker.stop.phase>
|
|
335 | 323 | <profile>
|
336 | 324 | <id>skip-citrus-remote</id>
|
337 | 325 | <properties>
|
338 |
| - <citrus.remote.phase>none</citrus.remote.phase> |
| 326 | + <citrus.remote.test.phase>none</citrus.remote.test.phase> |
| 327 | + <citrus.remote.verify.phase>none</citrus.remote.verify.phase> |
| 328 | + |
| 329 | + <docker.copy.phase>none</docker.copy.phase> |
339 | 330 | </properties>
|
340 | 331 | </profile>
|
341 | 332 | <profile>
|
|
0 commit comments