Skip to content

Commit

Permalink
OZ-196: Fix OpenMRS config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuisson committed Dec 18, 2023
1 parent 5c52fa6 commit 8f86fe9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ocd3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 1
# Build and publish are handled by GitHub Actions. Only using OCD3 to trigger downstream jobs.
build:
bash_commands: "echo 'Build is handled by GitHub Actions. Skipping...' && exit 0"
deploy:
bash_commands: "echo 'Publishing is handled by GitHub Actions. Skipping...' && exit 0"
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,31 @@
</snapshotRepository>
</distributionManagement>

<profiles>
<profile>
<id>validator</id>
<build>
<plugins>

<!-- hooking the OpenMRS config validation to the integration-test phase -->
<plugin>
<groupId>org.openmrs.maven.plugins</groupId>
<artifactId>openmrs-packager-maven-plugin</artifactId>
<version>1.7.0</version>
<executions>
<execution>
<id>validate-configurations</id>
<phase>integration-test</phase>
<goals>
<goal>validate-configurations</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 8f86fe9

Please sign in to comment.