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

Merge branch 'gitlab-runner' into 'master'

update to new gitlab runner

See merge request ghsc/nshmp/nshmp-haz-v2!449
parents d396dc34 78b9cc63
No related branches found
No related tags found
1 merge request!449update to new gitlab runner
Pipeline #4695 passed
...@@ -15,26 +15,32 @@ stages: ...@@ -15,26 +15,32 @@ stages:
- assemble - assemble
- test - test
####
# GitLab runner tags
####
.tags:
tags:
- development
#### ####
# Git clone nshmp-lib # Git clone nshmp-lib
#### ####
before_script: before_script:
- cd .. - cd ..
- rm -rf ${NSHMP_LIB} - rm -rf ${NSHMP_LIB}
- git clone ${NSHMP_LIB_GIT} - git clone ${NSHMP_LIB_GIT}
- cd ${CI_PROJECT_NAME} - cd ${CI_PROJECT_NAME}
#### ####
# Build jar file. # Build jar file.
#### ####
build-project: build project:
stage: assemble stage: assemble
image: usgsnshmp/openjdk:jdk8 image: usgsnshmp/openjdk:jdk8
extends: .tags
only: only:
- merge_request - merge_request
- master@ghsc/nshmp/nshmp-haz-v2 - master@ghsc/nshmp/nshmp-haz-v2
tags:
- nshmp-runner
script: script:
- ./gradlew assemble - ./gradlew assemble
...@@ -44,15 +50,14 @@ build-project: ...@@ -44,15 +50,14 @@ build-project:
# (string) JACOCO_HTML_DIR - Directory of Jacoco html reports # (string) JACOCO_HTML_DIR - Directory of Jacoco html reports
# (string) JUNIT_FILES - Path to all Junit html files # (string) JUNIT_FILES - Path to all Junit html files
#### ####
test-project: test project:
stage: test stage: test
image: usgsnshmp/openjdk:jdk8 image: usgsnshmp/openjdk:jdk8
extends: .tags
only: only:
- merge_request - merge_request
- master@ghsc/nshmp/nshmp-haz-v2 - master@ghsc/nshmp/nshmp-haz-v2
coverage: '/Total.*?([0-9]{1,3})%/' coverage: '/Total.*?([0-9]{1,3})%/'
tags:
- nshmp-runner
script: script:
- ./gradlew check - ./gradlew check
- cat ${JACOCO_HTML_DIR}/index.html - cat ${JACOCO_HTML_DIR}/index.html
......
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