From 177546874eb7d1c8cc393e887da1db0064050b68 Mon Sep 17 00:00:00 2001 From: uhohspagos <58110002+uhohspagos@users.noreply.github.com> Date: Sat, 2 Mar 2024 16:48:42 -0500 Subject: [PATCH 1/2] CircleCI Commit --- .circleci/config.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..2338570ed --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,59 @@ +# Couldn't automatically generate a config from your source code. +# This is a generic template to serve as a base for your custom config + +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs +jobs: + test: + # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job + docker: + # Specify the version you desire here + # See: https://circleci.com/developer/images/image/cimg/base + - image: cimg/base:current + + # Add steps to the job + # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps + steps: + # Checkout the code as the first step. + - checkout + # Replace this with a real test runner invocation + - run: + name: Run tests + command: echo 'replace me with real tests!' && false + build: + docker: + - image: cimg/base:current + steps: + - checkout + # Replace this with steps to build a package, or executable + - run: + name: Build an artifact + command: touch example.txt + - store_artifacts: + path: example.txt + deploy: + docker: + - image: cimg/base:current + steps: + # Replace this with steps to deploy to users + - run: + name: deploy + command: "#e.g. ./deploy.sh" + +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows +workflows: + example: + jobs: + - test + - build: + requires: + - test + - deploy: + requires: + - test \ No newline at end of file From 3790bef89cc2fe88e64c5b557f62e57bbf81d219 Mon Sep 17 00:00:00 2001 From: uhohspagos <58110002+uhohspagos@users.noreply.github.com> Date: Sun, 3 Mar 2024 00:17:17 -0500 Subject: [PATCH 2/2] Add .circleci/config.yml --- .circleci/config.yml | 40 ++++++---------------------------------- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2338570ed..62291703e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,3 @@ -# Couldn't automatically generate a config from your source code. -# This is a generic template to serve as a base for your custom config - # Use the latest 2.1 version of CircleCI pipeline process engine. # See: https://circleci.com/docs/configuration-reference version: 2.1 @@ -8,7 +5,7 @@ version: 2.1 # Define a job to be invoked later in a workflow. # See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs jobs: - test: + say-hello: # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job docker: @@ -21,39 +18,14 @@ jobs: steps: # Checkout the code as the first step. - checkout - # Replace this with a real test runner invocation - - run: - name: Run tests - command: echo 'replace me with real tests!' && false - build: - docker: - - image: cimg/base:current - steps: - - checkout - # Replace this with steps to build a package, or executable - - run: - name: Build an artifact - command: touch example.txt - - store_artifacts: - path: example.txt - deploy: - docker: - - image: cimg/base:current - steps: - # Replace this with steps to deploy to users - run: - name: deploy - command: "#e.g. ./deploy.sh" + name: "Say hello" + command: "echo Hello, World!" # Orchestrate jobs using workflows # See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows workflows: - example: + say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow. + # Inside the workflow, you define the jobs you want to run. jobs: - - test - - build: - requires: - - test - - deploy: - requires: - - test \ No newline at end of file + - say-hello \ No newline at end of file