diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d8307d132a5ba071db3f0132893c6568fbdb804..05ccb089cf8d1abd09dc16a7ef4f19912087b25f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,12 +25,14 @@ build-job: # This job runs in the build stage, which runs first. stage: build script: - echo "Compiling the code..." + - mvn compile - echo "Compile complete." unit-test-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. script: - echo "Running unit tests... This will take about 60 seconds." + - mvn test - echo "Code coverage is 90%" lint-test-job: # This job also runs in the test stage. @@ -44,4 +46,5 @@ deploy-job: # This job runs in the deploy stage. environment: production script: - echo "Deploying application..." + - mvn deploy - echo "Application successfully deployed."