Skip to content
Snippets Groups Projects
Commit 6061202c authored by Tim Hansson's avatar Tim Hansson
Browse files

Merge branch 'fixtests' into 'master'

Fixtests

See merge request !3
parents 5ddf1dd8 64c27904
Branches
No related tags found
1 merge request!3Fixtests
Pipeline #143552 passed
......@@ -8,23 +8,27 @@ stages:
build:
stage: build
script:
- apt-get update && apt-get install -y ant # Install Ant if it's not pre-installed in the image
- ant build
test:
stage: test
script:
- ant .lib test/lib/junit.jar -Dtest=allTests testall
- apt-get update && apt-get install -y ant # Ensure Ant is available for the test stage
- ant -lib test/lib/junit.jar -Dtest=allTests testall
artifacts:
paths:
- ./build/report/
- ./build/report/ # Ensure this directory exists after tests
reports:
junit:
- ./buid/report/xml/TEST-*.*
- ./build/report/xml/TEST-*.* # Fixed the typo in 'build'
pages:
stage: deploy
dependencies:
- test
script:
- mv ./build/report/ public/
- mv ./build/report/ public/ # Move the test reports to 'public/' for GitLab Pages
artifacts:
paths:
- public
......@@ -32,9 +32,8 @@ public class AllTests {
suite.addTest(net.sf.freecol.common.option.AllTests.suite());
suite.addTest(net.sf.freecol.common.model.AllTests.suite());
suite.addTest(net.sf.freecol.common.utils.AllTests.suite());
suite.addTest(net.sf.freecol.common.sound.AllTests.suite());
//suite.addTest(net.sf.freecol.common.sound.AllTests.suite());
//$JUnit-END$
return suite;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment