From d995b64f647f41b5167ad07ae38185ab3afb0235 Mon Sep 17 00:00:00 2001 From: Sachin Singh <sachin.singh@bluealtair.com> Date: Wed, 8 May 2024 14:00:19 +0000 Subject: [PATCH 1/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 56e28f1..c8e5606 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,20 @@ -stages: - - build - - test +image: selenium/standalone-firefox:latest build: stage: build - image: maven:latest # Separate image for the build stage script: - mvn compile + + test: stage: test - image: selenium/standalone-firefox:latest # Separate image for the test stage script: - - mvn clean verify + - mvn clean test artifacts: paths: - - target/*.html + - test-output/Spark.html + reports: + junit: + - test-output/Spark.html when: always -- GitLab From 1f37b3fefc2200d94a25bdd2b7965e95c37c5f4e Mon Sep 17 00:00:00 2001 From: Sachin Singh <sachin.singh@bluealtair.com> Date: Wed, 8 May 2024 16:07:51 +0000 Subject: [PATCH 2/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8e5606..67ecc3a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,19 @@ -image: selenium/standalone-firefox:latest +stages: + - build + - test build: stage: build + image: maven:latest # Separate image for the build stage script: - mvn compile - - test: stage: test + image: selenium/standalone-firefox:latest # Separate image for the test stage script: - - mvn clean test + - mvn clean verify artifacts: paths: - test-output/Spark.html - reports: - junit: - - test-output/Spark.html when: always -- GitLab From 6e14debc2265be28c2ded80cef0f2e43dfd32c97 Mon Sep 17 00:00:00 2001 From: Sachin Singh <sachin.singh@bluealtair.com> Date: Wed, 8 May 2024 16:12:47 +0000 Subject: [PATCH 3/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67ecc3a..ecd2b7e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,17 +2,24 @@ stages: - build - test +cache: + paths: + - .m2/repository/ + +before_script: + - chmod +x mvnw + build: stage: build - image: maven:latest # Separate image for the build stage + image: maven:latest script: - - mvn compile + - ./mvnw compile test: stage: test - image: selenium/standalone-firefox:latest # Separate image for the test stage + image: selenium/standalone-firefox:latest script: - - mvn clean verify + - ./mvnw clean verify artifacts: paths: - test-output/Spark.html -- GitLab From a4c62bb91a68ebb893d6310da3d1e9744d82cbd5 Mon Sep 17 00:00:00 2001 From: Sachin Singh <sachin.singh@bluealtair.com> Date: Wed, 8 May 2024 16:14:01 +0000 Subject: [PATCH 4/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ecd2b7e..6a2f88e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,19 +7,19 @@ cache: - .m2/repository/ before_script: - - chmod +x mvnw + - 'mvnw.cmd --version' # Display Maven Wrapper version for debugging build: stage: build image: maven:latest script: - - ./mvnw compile + - 'mvnw.cmd compile' # Use mvnw.cmd to compile test: stage: test image: selenium/standalone-firefox:latest script: - - ./mvnw clean verify + - 'mvnw.cmd clean verify' # Use mvnw.cmd to clean and verify artifacts: paths: - test-output/Spark.html -- GitLab From bf42d5fb798a602fadc3906e22e4c07db168c7b7 Mon Sep 17 00:00:00 2001 From: Sachin Singh <sachin.singh@bluealtair.com> Date: Wed, 8 May 2024 16:18:36 +0000 Subject: [PATCH 5/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6a2f88e..5468536 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,26 +1,18 @@ -stages: - - build - - test - -cache: - paths: - - .m2/repository/ - -before_script: - - 'mvnw.cmd --version' # Display Maven Wrapper version for debugging +image: selenium/standalone-firefox:latest build: stage: build - image: maven:latest script: - - 'mvnw.cmd compile' # Use mvnw.cmd to compile - + - mvn compile + test: stage: test - image: selenium/standalone-firefox:latest script: - - 'mvnw.cmd clean verify' # Use mvnw.cmd to clean and verify + - mvn clean test artifacts: paths: - test-output/Spark.html + reports: + junit: + - test-output/Spark.html when: always -- GitLab From 307a1c7653053e73e1f0d87240de70b0c08e5410 Mon Sep 17 00:00:00 2001 From: Sachin Singh <sachin.singh@bluealtair.com> Date: Wed, 8 May 2024 16:31:41 +0000 Subject: [PATCH 6/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5468536..f509111 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,15 @@ image: selenium/standalone-firefox:latest +stages: + - build + - test + build: stage: build script: - mvn compile - + - mvn install # Add 'mvn install' to build stage + test: stage: test script: -- GitLab From 1953355cb4886fb59a15b8e32ce3e66403d4c967 Mon Sep 17 00:00:00 2001 From: Sachin Singh <sachin.singh@bluealtair.com> Date: Wed, 8 May 2024 16:32:29 +0000 Subject: [PATCH 7/7] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f509111..8e996f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,8 +7,7 @@ stages: build: stage: build script: - - mvn compile - - mvn install # Add 'mvn install' to build stage + - mvn install # Add 'mvn install' to build stage test: stage: test -- GitLab