From 573b244fc90ab6d37cd4162a83e1a65cad6d3001 Mon Sep 17 00:00:00 2001 From: karthickrmi <129416362+karthickrmi@users.noreply.github.com> Date: Mon, 5 Jun 2023 23:50:30 +0530 Subject: [PATCH 1/4] Add files via upload --- config.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 config.yml diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..d77b65f --- /dev/null +++ b/config.yml @@ -0,0 +1,46 @@ +version: 2.1 + +jobs: + test: + docker: + - image: circleci/python:3.8 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: Upgrade pip + command: python -m pip install --upgrade pip + - run: + name: Run tests + command: | + . venv/bin/activate + pytest + + build: + docker: + - image: circleci/python:3.8 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: Upgrade pip + command: python -m pip install --upgrade pip + - run: + name: Build application + command: | + # Add build commands here + +workflows: + version: 2 + test_and_build: + jobs: + - test + - build: + requires: + - test \ No newline at end of file From a6b46fab620f17bb433b9589e257ba57566bd27e Mon Sep 17 00:00:00 2001 From: karthickrmi <129416362+karthickrmi@users.noreply.github.com> Date: Mon, 5 Jun 2023 23:50:49 +0530 Subject: [PATCH 2/4] Delete config.yml --- config.yml | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 config.yml diff --git a/config.yml b/config.yml deleted file mode 100644 index d77b65f..0000000 --- a/config.yml +++ /dev/null @@ -1,46 +0,0 @@ -version: 2.1 - -jobs: - test: - docker: - - image: circleci/python:3.8 - - working_directory: ~/repo - - steps: - - checkout - - - run: - name: Upgrade pip - command: python -m pip install --upgrade pip - - run: - name: Run tests - command: | - . venv/bin/activate - pytest - - build: - docker: - - image: circleci/python:3.8 - - working_directory: ~/repo - - steps: - - checkout - - - run: - name: Upgrade pip - command: python -m pip install --upgrade pip - - run: - name: Build application - command: | - # Add build commands here - -workflows: - version: 2 - test_and_build: - jobs: - - test - - build: - requires: - - test \ No newline at end of file From 4433bbf41c62d92a64a7ba0f3c402b1d1e72cc52 Mon Sep 17 00:00:00 2001 From: karthickrmi <129416362+karthickrmi@users.noreply.github.com> Date: Mon, 5 Jun 2023 23:51:30 +0530 Subject: [PATCH 3/4] Add files via upload --- .circleci/config.yml | 88 +++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b38925a..d77b65f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,42 +1,46 @@ -version: 2 -jobs: - unit_test: - docker: - - image: circleci/python:3.6.1 - - working_directory: ~/repo - - steps: - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "requirements.txt" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: - name: install dependencies - command: | - python3 -m venv venv - . venv/bin/activate - pip install -r requirements.txt - - - save_cache: - paths: - - ./venv - key: v1-dependencies-{{ checksum "requirements.txt" }} - - # run tests! - - run: - name: run tests - command: | - . venv/bin/activate - pytest test/test.py - -workflows: - version: 2 - build: - jobs: - - unit_test +version: 2.1 + +jobs: + test: + docker: + - image: circleci/python:3.8 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: Upgrade pip + command: python -m pip install --upgrade pip + - run: + name: Run tests + command: | + . venv/bin/activate + pytest + + build: + docker: + - image: circleci/python:3.8 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: Upgrade pip + command: python -m pip install --upgrade pip + - run: + name: Build application + command: | + # Add build commands here + +workflows: + version: 2 + test_and_build: + jobs: + - test + - build: + requires: + - test \ No newline at end of file From 0386fa60def3901a2f12b27aa1cb132fd4b2ea54 Mon Sep 17 00:00:00 2001 From: karthickrmi <129416362+karthickrmi@users.noreply.github.com> Date: Tue, 6 Jun 2023 00:00:24 +0530 Subject: [PATCH 4/4] Add .circleci/config.yml --- .circleci/config.yml | 72 ++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 46 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d77b65f..4175da6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,46 +1,26 @@ -version: 2.1 - -jobs: - test: - docker: - - image: circleci/python:3.8 - - working_directory: ~/repo - - steps: - - checkout - - - run: - name: Upgrade pip - command: python -m pip install --upgrade pip - - run: - name: Run tests - command: | - . venv/bin/activate - pytest - - build: - docker: - - image: circleci/python:3.8 - - working_directory: ~/repo - - steps: - - checkout - - - run: - name: Upgrade pip - command: python -m pip install --upgrade pip - - run: - name: Build application - command: | - # Add build commands here - -workflows: - version: 2 - test_and_build: - jobs: - - test - - build: - requires: - - test \ No newline at end of file +# 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/configuration-reference/#jobs +jobs: + 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/configuration-reference/#executor-job + docker: + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello