Skip to content

Commit

Permalink
re-enabled integration tests for xtend-archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Dec 4, 2024
1 parent 9361743 commit 1b2f12f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 1 addition & 2 deletions full-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

MVN_ARGS=(\
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-Dit-archetype-tests-skip=true \
)

# args parsing inspired by https://gist.github.com/jehiah/855086
Expand All @@ -22,7 +21,7 @@ while [ "$1" != "" ]; do
exit
;;
--no-tests)
MVN_ARGS+=(-DskipTests=true)
MVN_ARGS+=(-DskipTests=true -Dit-archetype-tests-skip=true)
;;
--local-repository)
MVN_ARGS+=" -Dmaven.repo.local=$VALUE"
Expand Down
11 changes: 7 additions & 4 deletions org.eclipse.xtend.maven.archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

<properties>
<root-dir>${basedir}/..</root-dir>
<it-archetype-tests-skip>true</it-archetype-tests-skip>
<it-archetype-tests-skip>false</it-archetype-tests-skip>
<it-archetype-tests-debug>false</it-archetype-tests-debug>
</properties>

<build>
Expand Down Expand Up @@ -53,14 +54,16 @@
<artifactId>maven-archetype-plugin</artifactId>
<configuration>
<skip>${it-archetype-tests-skip}</skip>
<debug>true</debug>
<debug>${it-archetype-tests-debug}</debug>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
</goals>
<configuration><debug>true</debug></configuration>
<configuration>
<debug>${it-archetype-tests-debug}</debug>
</configuration>
</execution>
</executions>
</plugin>
Expand All @@ -84,7 +87,7 @@
</file>
</activation>
<properties>
<it-tests-skip>true</it-tests-skip>
<it-archetype-tests-skip>true</it-archetype-tests-skip>
</properties>
</profile>
</profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<defaultValue>UTF-8</defaultValue>
</requiredProperty>
<requiredProperty key="javaVersion">
<defaultValue>1.8</defaultValue>
<defaultValue>17</defaultValue>
</requiredProperty>
</requiredProperties>
<fileSets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ sourceEncoding=UTF-8
groupId=integrationtest.group
artifactId=integrationtest.artifactId
version=1.0.0-SNAPSHOT
javaVersion=17
package=org.eclipse.xtend.xtend.archetype.integrationtest
packageInPathFormat=org/eclipse/xtend/xtend-archetype/integrationtest

0 comments on commit 1b2f12f

Please sign in to comment.