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

Update .gitlab-ci.yml

parent 9d2fd225
No related branches found
No related tags found
1 merge request!3Fixtests
Pipeline #143549 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:
- ./build/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment