Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-haz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-haz
Commits
14368e35
Commit
14368e35
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
add tasks
parent
e5159f6a
No related branches found
No related tags found
2 merge requests
!681
Production Release | nshmp-haz
,
!680
NSHM Unit Tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gradle/nshm.gradle
+109
-8
109 additions, 8 deletions
gradle/nshm.gradle
with
109 additions
and
8 deletions
gradle/nshm.gradle
+
109
−
8
View file @
14368e35
...
...
@@ -22,26 +22,127 @@ ext {
}
}
/**
* Download the NSHMs
*/
task
downloadNshms
()
{
// Download and unzip nshm-alaska tag for Alaska 2023
task
alaska2023
()
{
doLast
{
// Download and unzip nshm-alaska tag for Alaska 2023
downloadNshm
(
"nshm-alaska"
,
"3.a.0"
)
}
}
// Download and unzip nshm-conus tag for CONUS 2018
// Download and unzip nshm-conus tag for CONUS 2018
task
conus2018
()
{
doLast
{
downloadNshm
(
"nshm-conus"
,
"5.2.0"
)
}
}
// Download and unzip nshm-conus tag for CONUS 2023
// Download and unzip nshm-conus tag for CONUS 2023
task
conus2023
()
{
doLast
{
downloadNshm
(
"nshm-conus"
,
"6.a.3"
)
}
}
// Download and unzip nshm-hawaii tag for Hawaii 2021
// Download and unzip nshm-hawaii tag for Hawaii 2021
task
hawaii2021
()
{
doLast
{
downloadNshm
(
"nshm-hawaii"
,
"2.0.2"
)
}
}
// Download all NSHMs
task
nshms
()
{
dependsOn
alaska2023
dependsOn
conus2018
dependsOn
conus2023
dependsOn
hawaii2021
}
task
cleanNshm
(
type:
Delete
)
{
delete
nshmDir
}
clean
.
dependsOn
cleanNshm
// Test Alaska 2023 NSHM
task
testAlaska2023
(
type:
Test
)
{
description
=
"Test Alaska 2023 NSHM"
group
=
"verification"
dependsOn
alaska2023
testLogging
{
exceptionFormat
"full"
}
useJUnitPlatform
()
jvmArgs
(
"-Xms2g"
,
"-Xmx8g"
,
)
filter
{
includeTestsMatching
"gov.usgs.earthquake.nshmp.model.NshmTests.testAlaska2023"
}
}
// Test CONUS 2018 NSHM
task
testConus2018
(
type:
Test
)
{
description
=
"Test CONUS 2018 NSHM"
group
=
"verification"
dependsOn
conus2018
testLogging
{
exceptionFormat
"full"
}
useJUnitPlatform
()
jvmArgs
(
"-Xms2g"
,
"-Xmx8g"
,
)
filter
{
includeTestsMatching
"gov.usgs.earthquake.nshmp.model.NshmTests.testConus2018"
}
}
// Test CONUS 2023 NSHM
task
testConus2023
(
type:
Test
)
{
description
=
"Test CONUS 2023 NSHM"
group
=
"verification"
dependsOn
conus2023
testLogging
{
exceptionFormat
"full"
}
useJUnitPlatform
()
jvmArgs
(
"-Xms2g"
,
"-Xmx8g"
,
)
filter
{
includeTestsMatching
"gov.usgs.earthquake.nshmp.model.NshmTests.testConus2023"
}
}
// Test Hawaii 2021 NSHM
task
testHawaii2021
(
type:
Test
)
{
description
=
"Test Hawaii 2021 NSHM"
group
=
"verification"
dependsOn
hawaii2021
testLogging
{
exceptionFormat
"full"
}
useJUnitPlatform
()
jvmArgs
(
"-Xms2g"
,
"-Xmx8g"
,
)
filter
{
includeTestsMatching
"gov.usgs.earthquake.nshmp.model.NshmTests.testHawaii2021"
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment