-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
124 additions
and
1,141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
openjdk_executor: | ||
docker: | ||
- image: circleci/openjdk@sha256:012843a8f91da1ea5e22e142bb5cb8c999a7457e03b8c79ab45d5fcb68043383 | ||
environment: | ||
_JAVA_OPTIONS: "-Xmx3g" | ||
GRADLE_OPTS: "-Dorg.gradle.daemon=false" | ||
|
||
jobs: | ||
checkout_run_test: | ||
executor: openjdk_executor | ||
description: "Perform all setup steps" | ||
steps: | ||
- checkout | ||
- run: | ||
name: Create output directories | ||
command: "mkdir -vp ~/circleci-artifacts ~/circleci-test-results ~/circleci-test-results/junit/" | ||
|
||
- restore_cache: | ||
keys: | ||
- gradle-repo-v5-{{ .Branch }}-{{ checksum "gradle.properties" }} | ||
- gradle-repo-v5-{{ .Branch }}- | ||
- gradle-repo-v5- | ||
- run: | ||
name: Download uncached dependencies | ||
command: ./gradlew dependencies | ||
no_output_timeout: 1h | ||
|
||
- save_cache: | ||
paths: | ||
- ~/.gradle | ||
key: gradle-repo-v5-{{ .Branch }}-{{ checksum "gradle.properties" }} | ||
|
||
- run: | ||
name: Compile | ||
command: ./gradlew -PbuildNumber=$CIRCLE_BUILD_NUM -PbuildAccess=opensource -PbuildTag=$CIRCLE_TAG --refresh-dependencies --info --stacktrace clean assemble | ||
|
||
# Test | ||
- run: | ||
name: Run tests | ||
command: xvfb-run ./gradlew -PbuildAccess=opensource -PbuildNumber=$CIRCLE_BUILD_NUM -PbuildTag=$CIRCLE_TAG --info --stacktrace test | ||
|
||
- run: | ||
name: Collect test results | ||
command: find . -type f -regex ".*/build/test-results/.*xml" -exec cp -v {} ~/circleci-test-results/junit/ \; | ||
- run: | ||
name: Collect artifacts | ||
command: '[ ! -d build/reports ] || cp -R build/reports ~/circleci-artifacts/' | ||
|
||
# Teardown | ||
# Save test results | ||
- store_test_results: | ||
path: ~/circleci-test-results | ||
# Save artifacts | ||
- store_artifacts: | ||
path: ~/circleci-artifacts | ||
- store_artifacts: | ||
path: ~/circleci-test-results | ||
|
||
- run: rm -rf .git | ||
# Persist the specified paths (workspace/echo-output) into the workspace for use in build/test jobs. | ||
- persist_to_workspace: | ||
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is | ||
# taken to be the root directory of the workspace. | ||
root: ~/ | ||
# Must be relative path from root | ||
paths: | ||
- .gradle | ||
- project | ||
|
||
deploy_snapshot: | ||
executor: openjdk_executor | ||
steps: | ||
- attach_workspace: | ||
at: ~/ | ||
- run: | ||
name: Deploy snapshot to Artifactory | ||
command: ./gradlew -PbuildAccess=opensource -PbuildNumber=$CIRCLE_BUILD_NUM -PbuildTag=$CIRCLE_TAG -PartifactoryUrl=$ARTIFACTORY_URL -PartifactoryRepository=$SNAPSHOT_ARTIFACTORY_REPOSITORY -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --info --stacktrace artifactoryPublish | ||
deploy_release: | ||
executor: openjdk_executor | ||
steps: | ||
- attach_workspace: | ||
at: ~/ | ||
- run: | ||
name: Deploy release to Artifactory | ||
command: ./gradlew -PbuildAccess=opensource -PbuildNumber=$CIRCLE_BUILD_NUM -PbuildTag=$CIRCLE_TAG -PartifactoryUrl=$ARTIFACTORY_URL -PartifactoryRepository=$RELEASE_ARTIFACTORY_REPOSITORY -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --info --stacktrace artifactoryPublish | ||
- run: | ||
name: Deploy release to Bintray | ||
command: ./gradlew -PbuildAccess=opensource -PbuildNumber=$CIRCLE_BUILD_NUM -PbuildTag=$CIRCLE_TAG -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_KEY -PbintrayRepo=$BINTRAY_REPO -PbintrayUserOrg=$BINTRAY_USER_ORG --info --stacktrace clean bintrayUpload | ||
|
||
workflows: | ||
version: 2 | ||
build-test-deploy: | ||
jobs: | ||
- checkout_run_test: | ||
filters: | ||
tags: | ||
only: /[0-9.]+(-(a|b|rc)[0-9]+)?/ | ||
- deploy_snapshot: | ||
requires: | ||
- checkout_run_test | ||
filters: | ||
branches: | ||
only: /((release|hotfix|support)/[0-9.]+(-(a|b|rc)[0-9]+)?|master|develop)/ | ||
- deploy_release: | ||
requires: | ||
- checkout_run_test | ||
filters: | ||
tags: | ||
only: /[0-9.]+(-(a|b|rc)[0-9]+)?/ | ||
branches: | ||
ignore: /.*/ | ||
|
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.idea | ||
.gradle | ||
build | ||
*.iml |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
423 changes: 0 additions & 423 deletions
423
out/test/testrail-junit-publisher/TEST-gov.nasa.jpl.mbee.mdk.MDKPluginTest.xml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
out/test/testrail-junit-publisher/TEST-gov.nasa.jpl.mbee.mdk.MMSConfiguratorTest.xml
This file was deleted.
Oops, something went wrong.
378 changes: 0 additions & 378 deletions
378
out/test/testrail-junit-publisher/TEST-gov.nasa.jpl.mbee.mdk.MMSSyncPluginTest.xml
This file was deleted.
Oops, something went wrong.
219 changes: 0 additions & 219 deletions
219
out/test/testrail-junit-publisher/TEST-gov.nasa.jpl.mbee.mdk.util.UtilsTest.xml
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