-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #392 from usdot-jpo-ode/release/1.2.0
Release/1.2.0
- Loading branch information
Showing
20 changed files
with
584 additions
and
147 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,53 @@ | ||
version: 2.1 | ||
|
||
# Copyright (C) 2018-2020 LEIDOS. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations under | ||
# the License. | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: 'circleci/openjdk:8u252-jdk' | ||
steps: | ||
- checkout | ||
- run: | ||
name: Initialize Submodules | ||
command: | | ||
set -x | ||
pwd | ||
ls | ||
git submodule init | ||
git submodule update | ||
cd asn1_codec | ||
git submodule init | ||
git submodule update | ||
- run: | ||
name: Analyze on SonarCloud | ||
command: | | ||
if [ -z "${CIRCLE_PULL_REQUEST}" ]; then | ||
mvn -e -X clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar | ||
fi | ||
echo "PR branch ${CIRCLE_BRANCH}" | ||
echo "Repo name ${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" | ||
echo "URL ${CIRCLE_PULL_REQUEST}" | ||
export PR_NUM=`echo ${CIRCLE_PULL_REQUEST} | cut -d'/' -f7` | ||
echo "PR number ${PR_NUM}" | ||
export BASE_BRANCH_URL="https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/pulls/${PR_NUM}" | ||
export TARGET_BRANCH=$(curl "$BASE_BRANCH_URL" | jq '.base.ref' | tr -d '"') | ||
echo "Target Branch = ${TARGET_BRANCH}" | ||
mvn -e -X clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.pullrequest.base=${TARGET_BRANCH} -Dsonar.pullrequest.branch=${CIRCLE_BRANCH} -Dsonar.pullrequest.key=${PR_NUM} | ||
workflows: | ||
main: | ||
jobs: | ||
- build: | ||
context: SonarCloud |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
sonar.modules= asn1_codec, \ | ||
jpo-cvdp, \ | ||
jpo-ode-common, \ | ||
jpo-ode-consumer-example, \ | ||
jpo-ode-core, \ | ||
jpo-ode-plugins, \ | ||
jpo-ode-svcs, \ | ||
jpo-s3-deposit, \ | ||
jpo-sdw-depositor, \ | ||
jpo-security-svcs | ||
|
||
asn1_codec.sonar.projectBaseDir = /home/circleci/project/asn1_codec | ||
jpo-cvdp.sonar.projectBaseDir = /home/circleci/project/jpo-cvdp | ||
jpo-ode-common.sonar.projectBaseDir = /home/circleci/project/jpo-ode-common | ||
jpo-ode-consumer-example.sonar.projectBaseDir = /home/circleci/project/jpo-ode-consumer-example | ||
jpo-ode-core.sonar.projectBaseDir = /home/circleci/project/jpo-ode-core | ||
jpo-ode-plugins.sonar.projectBaseDir = /home/circleci/project/jpo-ode-plugins | ||
jpo-ode-svcs.sonar.projectBaseDir = /home/circleci/project/jpo-ode-svcs | ||
jpo-s3-deposit.sonar.projectBaseDir = /home/circleci/project/jpo-s3-deposit | ||
jpo-sdw-depositor.sonar.projectBaseDir = /home/circleci/project/jpo-sdw-depositor | ||
jpo-security-svcs.sonar.projectBaseDir = /home/circleci/project/jpo-security-svcs | ||
|
||
asn1_codec.sonar.sources = src | ||
jpo-cvdp.sonar.sources = src | ||
jpo-ode-common.sonar.sources = src | ||
jpo-ode-consumer-example.sonar.sources = src | ||
jpo-ode-core.sonar.sources = src | ||
jpo-ode-plugins.sonar.sources = src | ||
jpo-ode-svcs.sonar.sources = src | ||
jpo-s3-deposit.sonar.sources = src | ||
jpo-sdw-depositor.sonar.sources = src | ||
jpo-security-svcs.sonar.sources = src | ||
|
||
jpo-ode-common.sonar.tests = src/test | ||
jpo-ode-consumer-example.sonar.tests = src/test | ||
jpo-ode-core.sonar.tests = src/test | ||
jpo-ode-plugins.sonar.tests = src/test | ||
jpo-ode-svcs.sonar.tests = src/test | ||
jpo-sdw-depositor.sonar.tests = src/test |
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
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
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.