Skip to content

Commit

Permalink
config: combine sevntu selftesting with regular testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed Oct 23, 2022
1 parent 8b469f8 commit eb45480
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 40 deletions.
1 change: 0 additions & 1 deletion .ci/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ sonar-plugin)
sevntu-checks)
cd sevntu-checks
mvn -e -Pcoverall install
mvn -e verify -Pno-validations,selftesting
if [[ $TRAVIS == 'true' ]]; then
mvn -e -Pcoverall jacoco:report coveralls:report
fi
Expand Down
73 changes: 34 additions & 39 deletions sevntu-checks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
</execution>
</executions>
</plugin>
<!-- Checkstyle Config -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down Expand Up @@ -280,6 +281,39 @@
</dependency>
</dependencies>
</plugin>
<!-- Sevntu Config -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${antrun.plugin.version}</version>
<executions>
<execution>
<id>ant-phase-verify-sevntu</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<property name="mvn.project.build.directory" value="${project.build.directory}" />
<ant antfile="ant-phase-verify-sevntu.xml" />
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
<dependency>
<groupId>com.github.sevntu-checkstyle</groupId>
<artifactId>sevntu-checks</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
Expand Down Expand Up @@ -881,45 +915,6 @@
<maven.site.skip>true</maven.site.skip>
</properties>
</profile>
<profile>
<id>selftesting</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${antrun.plugin.version}</version>
<executions>
<execution>
<id>ant-phase-verify</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<property name="mvn.project.build.directory" value="${project.build.directory}" />
<ant antfile="ant-phase-verify-sevntu.xml" />
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
<dependency>
<groupId>com.github.sevntu-checkstyle</groupId>
<artifactId>sevntu-checks</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>local-deploy</id>
Expand Down

0 comments on commit eb45480

Please sign in to comment.