Skip to content

Commit

Permalink
build: run weasyprint integration tests during build process
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed Jun 10, 2024
1 parent b1d7809 commit 430a334
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ jobs:
]
- name: Print settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Prepare integration tests environment
run: sudo apt install libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 fonts-liberation && weasyprint --info && pango-view --version && python3 --version
- name: Build with Maven
run: mvn --batch-mode clean package -P polarion2404,install-weasyprint,tests-with-weasyprint-cli
run: mvn --batch-mode -DwpExporterImpl=docker clean package -P polarion2404,tests-with-weasyprint-docker
- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@v4
Expand Down
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,26 @@
</plugins>
</build>
</profile>

<profile>
<id>tests-with-weasyprint-docker</id>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<!-- hide unwanted exceptions logging -->
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
<wpExporterImpl>docker</wpExporterImpl>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 430a334

Please sign in to comment.