diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..08b49fd01803c712c2ec1df0e90463716e7f5042 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,41 @@ +image: alash325/javaant:latest + +stages: # List of stages for jobs, and their order of execution + - build + - test + - deploy + +build: # This job runs in the build stage, which runs first. + + stage: build + + script: + - ant build + +test: # This job runs in the test stage. + + stage: test # It only starts when the job in the build stage completes successfully. + + script: + - ant -lib test/lib/junit.jar -Dtest=AllTests testall + + artifacts: + paths: + - ./build/report/ + + reports: + junit: + - ./build/report/xml/TEST-*.* + + + +pages: + stage: deploy + dependencies: + - test + script: + - mv ./build/report/ public/ + + artifacts: + paths: + - public