From 2ed36d9ba4d5c78881f31b00137df14ef049c3cf Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Wed, 23 Oct 2024 15:36:24 -0600
Subject: [PATCH] add web tests

---
 .gitlab-ci.yml | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1670e7a0..5dc44d4b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -239,7 +239,31 @@ NSHM Tests:
   script:
     - CI_RUNNER_MEMORY="$(awk '/MemTotal/ {printf( "%d\n", $2 / 1024 / 1024 * .90 )}' /proc/meminfo)g"
     - export CI_RUNNER_MEMORY
-    # - ./gradlew generate${NSHM} --info
+    - ./gradlew generate${NSHM} --info
+    - ./gradlew test${NSHM} --info
+    - cat ${JACOCO_HTML_DIR}/index.html
+  stage: test
+  tags:
+    - nshmp
+
+NSHM Web Tests:
+  artifacts:
+    paths:
+      - ${JACOCO_HTML_DIR}
+    reports:
+      junit: ${JUNIT_FILES}
+  coverage: '/Total.*?([0-9]{1,3})%/'
+  needs: []
+  parallel:
+    matrix:
+      # - NSHM: Alaska2007
+      - NSHM: WebAlaska2023
+      # - NSHM: Conus2018
+      # - NSHM: Conus2023
+      # - NSHM: Hawaii2021
+  script:
+    - CI_RUNNER_MEMORY="$(awk '/MemTotal/ {printf( "%d\n", $2 / 1024 / 1024 * .90 )}' /proc/meminfo)g"
+    - export CI_RUNNER_MEMORY
     - ./gradlew test${NSHM} --info
     - cat ${JACOCO_HTML_DIR}/index.html
   stage: test
-- 
GitLab