From 94ceb015cb0c63d094fec320c48e8cc6b4e18eee Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 12:49:48 +0530 Subject: [PATCH 01/25] Create config.yml --- .circleci/config.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..a5342d85 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,20 @@ +# Disable sudo to speed up the build +sudo: false + +# Set the build language to Python +language: python + +# Set the python version to 2.7 +python: 2.7 + +# Install the codecov pip dependency +install: + - pip install codecov + +# Run the unit test +script: + - coverage run tests.py + +# Push the results back to codecov +after_success: + - codecov From 9ad60f277ae57d4e50f4c3c23233c64339953231 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 12:54:24 +0530 Subject: [PATCH 02/25] Update config.yml --- .circleci/config.yml | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a5342d85..5f84cbc0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,20 +1,16 @@ -# Disable sudo to speed up the build -sudo: false - -# Set the build language to Python -language: python - -# Set the python version to 2.7 -python: 2.7 - -# Install the codecov pip dependency -install: - - pip install codecov - -# Run the unit test -script: - - coverage run tests.py - -# Push the results back to codecov -after_success: - - codecov +version: 2 +jobs: + build: + working_directory: ~/example-python + docker: + - image: circleci/python:3.6.4 + steps: + - checkout + - run: + name: Setup testing environment + command: | + pip install coverage + - run: + name: Running Tests + command: | + coverage run tests.py From 8202aa9b28420cd7f74121f220319ff016049272 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 12:58:22 +0530 Subject: [PATCH 03/25] Update config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f84cbc0..6407fee5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,9 +8,9 @@ jobs: - checkout - run: name: Setup testing environment - command: | + command: pip install coverage - run: name: Running Tests - command: | + command: coverage run tests.py From 79c72ea36b1468c22048000ef89116ff4083db65 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 12:58:49 +0530 Subject: [PATCH 04/25] Update config.yml --- .circleci/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6407fee5..92767bbd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,10 +7,8 @@ jobs: steps: - checkout - run: - name: Setup testing environment command: pip install coverage - run: - name: Running Tests command: coverage run tests.py From 8356e284794757ac77dc39e9204b777f1e004b6e Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:12:55 +0530 Subject: [PATCH 05/25] Update config.yml --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 92767bbd..e124c04a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,8 +7,8 @@ jobs: steps: - checkout - run: - command: - pip install coverage + command: + pip install coverage - run: - command: - coverage run tests.py + command: + coverage run tests.py From 4535276af65a3a0176288fe92b7efacf8508c393 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:14:23 +0530 Subject: [PATCH 06/25] Update config.yml --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e124c04a..8e5d11be 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,9 @@ jobs: - image: circleci/python:3.6.4 steps: - checkout + - run: + command: + pip install --upgrade pip - run: command: pip install coverage From fcf39ad03ae53978ecdfc0de0d64e03ae7a723f6 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:15:41 +0530 Subject: [PATCH 07/25] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8e5d11be..db7cd001 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: working_directory: ~/example-python docker: - - image: circleci/python:3.6.4 + - image: circleci/python:3.7 steps: - checkout - run: From be7ee5ccd33d0086e02be37573a9839ac024f60d Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:16:27 +0530 Subject: [PATCH 08/25] Update config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index db7cd001..2ae3d169 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,10 +8,10 @@ jobs: - checkout - run: command: - pip install --upgrade pip + sudo pip install --upgrade pip - run: command: - pip install coverage + sudo pip install coverage - run: command: coverage run tests.py From 327908c1212b5ac04c34c8705d01c0dce08afd36 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:17:36 +0530 Subject: [PATCH 09/25] Update config.yml --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2ae3d169..98765c96 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,3 +15,6 @@ jobs: - run: command: coverage run tests.py + + - store_artifacts: + path: test-results From b03030e583ec5f5eee4d9b490c4d178502487891 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:20:18 +0530 Subject: [PATCH 10/25] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 98765c96..60cdf6ed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: sudo pip install coverage - run: command: - coverage run tests.py + coverage run tests.py && coverage report - store_artifacts: path: test-results From bef5d50c2ea0abdc8a435cf44f9b86520f5a5e03 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:21:16 +0530 Subject: [PATCH 11/25] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 60cdf6ed..f669a5ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,4 +17,4 @@ jobs: coverage run tests.py && coverage report - store_artifacts: - path: test-results + path: coverage From 55cb040aa6369f4c1f1f10419cbb1af6c992a55d Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:22:52 +0530 Subject: [PATCH 12/25] Update config.yml --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f669a5ab..d4a79f37 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,12 +9,13 @@ jobs: - run: command: sudo pip install --upgrade pip + - run: mkdir test-reports - run: command: sudo pip install coverage - run: command: - coverage run tests.py && coverage report + coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml - store_artifacts: path: coverage From 49d2006fddf31d71cf24aa14a8fa0d7c019713c6 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:23:49 +0530 Subject: [PATCH 13/25] Update config.yml --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d4a79f37..e95e18b4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,8 @@ jobs: - run: command: coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml - + - run: + command: + coverage report && coverage xml -o test-reports/coverage.xml - store_artifacts: path: coverage From 314fbd8d49e6d1452b86a5a6724d42e28477ea7b Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:27:53 +0530 Subject: [PATCH 14/25] Update config.yml --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e95e18b4..ece6b4b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,5 +19,8 @@ jobs: - run: command: coverage report && coverage xml -o test-reports/coverage.xml + - run: + command: + coverage xml - store_artifacts: path: coverage From c64d47afd92c5996375228b559c94c051bfce909 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:29:22 +0530 Subject: [PATCH 15/25] Update config.yml --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ece6b4b2..4e28438c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,5 +22,10 @@ jobs: - run: command: coverage xml + - store_artifacts: + path: test-reports + destination: test-reports + - store_artifacts: path: coverage + destination: coverage From 7fc4ff5c86bca6e772cffcabd0954d4a1be32eff Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 14:31:46 +0530 Subject: [PATCH 16/25] Update config.yml --- .circleci/config.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4e28438c..d9e2dc78 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,13 +19,6 @@ jobs: - run: command: coverage report && coverage xml -o test-reports/coverage.xml - - run: - command: - coverage xml - store_artifacts: path: test-reports destination: test-reports - - - store_artifacts: - path: coverage - destination: coverage From d30db3e06108cc2df98e2f34310ac152ad7b2475 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:16:31 +0530 Subject: [PATCH 17/25] Update config.yml --- .circleci/config.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d9e2dc78..28bc3ec7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,9 +16,6 @@ jobs: - run: command: coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml - - run: - command: - coverage report && coverage xml -o test-reports/coverage.xml - store_artifacts: path: test-reports destination: test-reports From ed15a31bc85f8cd65ce0006fd934f89ab73e1cca Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:17:22 +0530 Subject: [PATCH 18/25] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 28bc3ec7..44ad1a87 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: sudo pip install coverage - run: command: - coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml + coverage run tests.py && coverage report && coverage xml - store_artifacts: path: test-reports destination: test-reports From 52407d8580bec60ef392f7676d1963506bfd18cc Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:18:37 +0530 Subject: [PATCH 19/25] Update config.yml --- .circleci/config.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 44ad1a87..4a0365f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,4 @@ jobs: sudo pip install coverage - run: command: - coverage run tests.py && coverage report && coverage xml - - store_artifacts: - path: test-reports - destination: test-reports + coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml From 54dd6f091f56bef69a9402a5db51a7ef0afbda12 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:20:13 +0530 Subject: [PATCH 20/25] Update config.yml --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4a0365f2..64221caf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,3 +16,7 @@ jobs: - run: command: coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml + + - store_artifacts: + path: test-reports + destination: test-reports From be2b483d9829b33028f1a08f8094c3282c51a4ec Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:20:48 +0530 Subject: [PATCH 21/25] Update config.yml --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 64221caf..b485bd4d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,6 +17,6 @@ jobs: command: coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml - - store_artifacts: - path: test-reports - destination: test-reports + - store_artifacts: + path: test-reports + destination: test-reports From 69ad3d262dcdde000b4ad8293426ae9b07acb21c Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:21:47 +0530 Subject: [PATCH 22/25] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b485bd4d..3b50025e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: sudo pip install coverage - run: command: - coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml + coverage run tests.py && coverage report && coverage xml - store_artifacts: path: test-reports From 88a545443296c672c84e8322abef85d52206759a Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:22:30 +0530 Subject: [PATCH 23/25] Update config.yml --- .circleci/config.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b50025e..4a0365f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,8 +15,4 @@ jobs: sudo pip install coverage - run: command: - coverage run tests.py && coverage report && coverage xml - - - store_artifacts: - path: test-reports - destination: test-reports + coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml From 2668c1b081b725a7ae4602b4f34887bf248519d8 Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:22:59 +0530 Subject: [PATCH 24/25] Update config.yml --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4a0365f2..b485bd4d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,3 +16,7 @@ jobs: - run: command: coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml + + - store_artifacts: + path: test-reports + destination: test-reports From f4bb70d58070e1fe9359d6d8bb322e45a6819ffd Mon Sep 17 00:00:00 2001 From: KKghai <41187790+KKghai@users.noreply.github.com> Date: Thu, 23 May 2019 17:28:42 +0530 Subject: [PATCH 25/25] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b485bd4d..3c771594 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: sudo pip install coverage - run: command: - coverage run tests.py && coverage report && coverage xml -o test-reports/coverage.xml + coverage run tests.py && coverage xml -o test-reports/coverage.xml - store_artifacts: path: test-reports