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

add files

parent ff008124
No related branches found
No related tags found
1 merge request!691nshmp-haz Legacy Main Branch
.classpath
.project
.settings
.gradle
bin
build
classes
tmp
curves*/
hazout*/
eq-prob*/
eq-rate*/
Scratch*.java
nshmp-haz-log*
.vscode
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false
name: Build nshmp-haz Docker Image
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Build the Docker image
run: docker build -t nshmp-haz .
-
name: Test nshmp-haz
run: |
docker run \
-e PROGRAM=hazard \
-e MODEL=WUS-2008 \
-v $(pwd)/etc/examples/3-sites-file/sites.geojson:/app/sites.geojson \
-v $(pwd)/etc/examples/3-sites-file/config.json:/app/config.json \
-v $(pwd)/hazout:/app/output \
nshmp-haz
name: Build nshmp-haz JAR
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Run Tests with Gradle
run: ./gradlew test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
-
name: Build with Gradle
run: ./gradlew build
-
name: Test nshmp-haz
run: |
java -cp build/libs/nshmp-haz.jar \
gov.usgs.earthquake.nshmp.HazardCalc \
etc/peer/models/Set1-Case1 \
"Test Site, -122.0, 38.0"
.classpath
.project
.settings
.gradle
bin
build
classes
tmp
curves*/
hazout*/
eq-prob*/
eq-rate*/
Scratch*.java
nshmp-haz-log*
.vscode
language: java
# Prevent upoad of Gradle cache
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
after_success:
- bash <(curl -s https://codecov.io/bash)
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