-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gradle6' into 'master'
Gradle6 + Gitlab pipeline See merge request ghsc/hazdev/pdl!131
- Loading branch information
Showing
27 changed files
with
920 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ test-index.db | |
.idea/ | ||
out/ | ||
data/ | ||
.project | ||
.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
image: ${DEVOPS_REGISTRY}usgs/centos:8 | ||
|
||
stages: | ||
- build | ||
|
||
.check_code: | ||
after_script: | ||
# runs before cache is saved (copying from .travis.yml) | ||
- rm -f "${CI_PROJECT_DIR}/.gradle/caches/modules-2/modules-2.lock" | ||
- rm -fr "${CI_PROJECT_DIR}/.gradle/caches/*/plugin-resolution/" | ||
artifacts: | ||
paths: | ||
- ProductClient.jar | ||
- ProductClient.zip | ||
reports: | ||
cobertura: build/reports/cobertura/cobertura.xml | ||
junit: build/test-results/test/TEST-*.xml | ||
cache: | ||
paths: | ||
- .gradle/caches | ||
- .gradle/wrapper | ||
image: ${DEVOPS_REGISTRY}usgs/java:11-jdk | ||
script: | ||
# run gradle | ||
- export GRADLE_USER_HOME="${CI_PROJECT_DIR}/.gradle" | ||
- ./gradlew build createZip | ||
# set up artifact paths | ||
- cp build/libs/ProductClient.jar ProductClient.jar | ||
- cp build/distributions/ProductClient.zip ProductClient.zip | ||
stage: build | ||
tags: | ||
- development | ||
|
||
Java 8: | ||
extends: | ||
- .check_code | ||
image: ${DEVOPS_REGISTRY}usgs/java:8-jdk | ||
|
||
Java 11: | ||
extends: | ||
- .check_code | ||
image: ${DEVOPS_REGISTRY}usgs/java:11-jdk | ||
|
||
Java Latest: | ||
extends: | ||
- .check_code | ||
image: ${DEVOPS_REGISTRY}usgs/java:latest-jdk |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.