diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64b372da1c3f8fc7e9e12173dd274a3d421db08c..e541439d38efe2f82318f34c94abbb468d37b801 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,3 +47,32 @@ deploy-job: # This job runs in the deploy stage. script: - echo "Deploying application..." - echo "Application successfully deployed." + + + + image: openjdk:latest + +build: + stage: build + script: + - javac SiteGen.java + +test: + stage: test + script: + - javac -cp "./junit-platform-console-standalone-1.8.1.jar" SiteGenTest.java SiteGen.java + - java -jar junit-platform-console-standalone-1.8.1.jar -cp "." -c SiteGenTest + +pages: + stage: deploy + script: + - javac SiteGen.java + - java SiteGen + artifacts: + paths: + - public + only: + - main + + +