From 10bb57a0748f8ae99eb37d00a5788d1a4a073b98 Mon Sep 17 00:00:00 2001 From: nbushongjc <69013671+nbushongjc@users.noreply.github.com> Date: Wed, 27 Jan 2021 12:16:48 -0600 Subject: [PATCH 1/7] Add .circleci/config.yml --- .circleci/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6f98693 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,13 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 +# Use a package of configuration called an orb. +orbs: + # Declare a dependency on the welcome-orb + welcome: circleci/welcome-orb@0.4.1 +# Orchestrate or schedule a set of jobs +workflows: + # Name the workflow "welcome" + welcome: + # Run the welcome/run job in its own container + jobs: + - welcome/run From a60113e5c86690e572171130e00dec6a31423d3a Mon Sep 17 00:00:00 2001 From: Nicole Bushong Date: Wed, 27 Jan 2021 12:59:39 -0600 Subject: [PATCH 2/7] add sonarcloud config --- .circleci/config.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f98693..34b64b7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,13 +1,22 @@ # Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference version: 2.1 -# Use a package of configuration called an orb. + orbs: - # Declare a dependency on the welcome-orb - welcome: circleci/welcome-orb@0.4.1 -# Orchestrate or schedule a set of jobs + sonarcloud: sonarsource/sonarcloud@1.0.1 + +jobs: + build: + docker: + - image: cimg/ruby:latest + steps: + - checkout + - run: + name: Install dependencies and build project + command: ********** CHANGE ME 2 ********** + - sonarcloud/scan + workflows: - # Name the workflow "welcome" - welcome: - # Run the welcome/run job in its own container + main: jobs: - - welcome/run + - build: + context: SonarCloud \ No newline at end of file From 96330e0f40f202cec4d364129021aea1ecede18a Mon Sep 17 00:00:00 2001 From: Nicole Bushong Date: Wed, 27 Jan 2021 13:03:27 -0600 Subject: [PATCH 3/7] fixy fix --- .circleci/config.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 34b64b7..dfa4d08 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,9 +10,6 @@ jobs: - image: cimg/ruby:latest steps: - checkout - - run: - name: Install dependencies and build project - command: ********** CHANGE ME 2 ********** - sonarcloud/scan workflows: From fb3eb3d52c223ffdffb374a6fbc5e493b4b3adfd Mon Sep 17 00:00:00 2001 From: Nicole Bushong Date: Wed, 27 Jan 2021 13:04:35 -0600 Subject: [PATCH 4/7] fixy fix 2 --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dfa4d08..c798478 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,6 @@ jobs: - image: cimg/ruby:latest steps: - checkout - - sonarcloud/scan workflows: main: From 8b7c1a52541f164bd249cbc2f6a56f830bc501dd Mon Sep 17 00:00:00 2001 From: Nicole Bushong Date: Wed, 27 Jan 2021 13:06:21 -0600 Subject: [PATCH 5/7] undo 2 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c798478..dfa4d08 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,6 +10,7 @@ jobs: - image: cimg/ruby:latest steps: - checkout + - sonarcloud/scan workflows: main: From dfa355402701aed4d5eef5fa4ec9a80324f51088 Mon Sep 17 00:00:00 2001 From: Nicole Bushong Date: Wed, 27 Jan 2021 13:08:07 -0600 Subject: [PATCH 6/7] properties file --- sonar-project.properties | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..20165e1 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +sonar.projectKey=nbushongjc_jcapi-ruby +sonar.organization=nbushongjc + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=jcapi-ruby +#sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 \ No newline at end of file From f1f4f26c53138fc8b9eb4602afd3b3fe8d8e2be7 Mon Sep 17 00:00:00 2001 From: Nicole Bushong Date: Wed, 27 Jan 2021 13:16:08 -0600 Subject: [PATCH 7/7] umm --- .circleci/config.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dfa4d08..3b17354 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,19 +1,15 @@ -# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference version: 2.1 - orbs: - sonarcloud: sonarsource/sonarcloud@1.0.1 - + sonarcloud: sonarsource/sonarcloud@1.0.0 jobs: build: docker: - - image: cimg/ruby:latest + - image: 'circleci/python:3.7.4' steps: - - checkout - - sonarcloud/scan - + - checkout + - sonarcloud/scan workflows: - main: + my-workflow: jobs: - build: context: SonarCloud \ No newline at end of file