Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'github-actions-part15' into master
= GitHub Actions part 15: Test the Gradle builder against the Ant builder once, improve the test scripts Some time ago I wrote the following scripts: tools/compare-gradle-jars-against-ant-jars tools/compare-gradle-tests-against-ant-tests These can be used to test if the Gradle builder produces the same JARs as the Ant one, and if it runs the same tests. Because the migration from Travis CI to GitHub Actions could have broken things about Ant/Gradle, I have enabled the scripts on GHA once on this branch to see if they succeed, which they did on Linux up to Java 15, and thus disabled them again. Java 16 and above fail on Linux due to actual unit test failures which likely aren't the fault of the build system. Further, I've noticed that the two scripts do not work on macOS and MinGW (which GHA uses on Windows to run Ant). But the failures are due to the different OS environments breaking the scripts, and breaking Ant - the actual output of the builders cannot be tested. Since the Ant and Gradle build scripts do not contain any conditions to do things differently on different operating systems I decided it's enough that the scripts succeed on Linux and I do not want to spend the effort to get them working on the other environments. Hence I've amended them with code to exit early on macOS & MinGW, telling the user to use Linux for them instead. Remaining GHA work: - Resolve the remaining 2 FIXMEs added to the code by the github-actions-part* branches. 1 was resolved by this branch. - Reduce the number of old Java versions we test on, add new ones which have been released meanwhile. - Investigate why the unit tests have recently started to fail on Windows, and with the Ant builder on Linux for Java >= 16. If this can't be fixed right away disable the tests on Windows and file a bug.
- Loading branch information