Skip to content
Snippets Groups Projects
Commit c3776fee authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

change to single stage

parent 2f5ce99c
No related branches found
No related tags found
2 merge requests!755Production Release | nshmp-haz,!754NSHM Unit tests
...@@ -226,15 +226,7 @@ Markdown Lint: ...@@ -226,15 +226,7 @@ Markdown Lint:
- ./gradlew markdownlint - ./gradlew markdownlint
stage: test stage: test
YAML Lint: NSHM Test:
allow_failure: true
needs: []
script:
- ./gradlew nodeInstall
- ./gradlew yamllint
stage: test
Unit Tests:
artifacts: artifacts:
paths: paths:
- ${JACOCO_HTML_DIR} - ${JACOCO_HTML_DIR}
...@@ -242,16 +234,30 @@ Unit Tests: ...@@ -242,16 +234,30 @@ Unit Tests:
junit: ${JUNIT_FILES} junit: ${JUNIT_FILES}
coverage: '/Total.*?([0-9]{1,3})%/' coverage: '/Total.*?([0-9]{1,3})%/'
needs: [] needs: []
parallel:
matrix:
- NSHM: Alaska2007
- NSHM: Alaska2023
- NSHM: Conus2018
- NSHM: Conus2023
- NSHM: Hawaii2021
script: script:
- ./gradlew check - CI_RUNNER_MEMORY="$(awk '/MemTotal/ {printf( "%d\n", $2 / 1024 / 1024 * .90 )}' /proc/meminfo)g"
- export CI_RUNNER_MEMORY
- ./gradlew generate${NSHM} --info
- ./gradlew test${NSHM} --info
- cat ${JACOCO_HTML_DIR}/index.html - cat ${JACOCO_HTML_DIR}/index.html
stage: test stage: test
#### YAML Lint:
# NSHMS Tests allow_failure: true
#### needs: []
script:
- ./gradlew nodeInstall
- ./gradlew yamllint
stage: test
.nshm-test: Unit Tests:
artifacts: artifacts:
paths: paths:
- ${JACOCO_HTML_DIR} - ${JACOCO_HTML_DIR}
...@@ -259,49 +265,10 @@ Unit Tests: ...@@ -259,49 +265,10 @@ Unit Tests:
junit: ${JUNIT_FILES} junit: ${JUNIT_FILES}
coverage: '/Total.*?([0-9]{1,3})%/' coverage: '/Total.*?([0-9]{1,3})%/'
needs: [] needs: []
before_script:
- CI_RUNNER_MEMORY="$(awk '/MemTotal/ {printf( "%d\n", $2 / 1024 / 1024 * .90 )}' /proc/meminfo)g"
- export CI_RUNNER_MEMORY
- ./gradlew ${CMD} --info
after_script:
- cat ${JACOCO_HTML_DIR}/index.html
Alaska 2007 NSHM Test:
extends:
- .nshm-test
script:
- ./gradlew testAlaska2007 --info
stage: alaska-test
Alaska 2023 NSHM Test:
extends:
- .nshm-test
script:
- ./gradlew testAlaska2023 --info
stage: alaska-test
CONUS 2018 NSHM Test:
extends:
- .nshm-test
script:
- ./gradlew generateConus2018 --info
- ./gradlew testConus2018 --info
stage: conus-test
CONUS 2023 NSHM Test:
extends:
- .nshm-test
script: script:
- ./gradlew generateConus2023 --info - ./gradlew check
- ./gradlew testConus2023 --info - cat ${JACOCO_HTML_DIR}/index.html
stage: conus-test stage: test
Hawaii 2021 NSHM Test:
extends:
- .nshm-test
script:
- ./gradlew testHawaii2021 --info
stage: hawaii-test
#### ####
# Stage: trigger # Stage: trigger
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment