From 56d2970eb19de253946eea5f5aa86068a06f1504 Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 22:37:13 +0530 Subject: [PATCH 01/11] Update config.yml --- .circleci/config.yml | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 90d793211..c569578a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,8 +2,11 @@ version: 2 jobs: test: docker: - - image: circleci/node:8.9.4 + - image: circleci/node:8.9.4-browsers steps: + - run: + name: checking out qa framework repo + command: git clone --branch master https://github.com/appirio-tech/qa-framework.git ../qa-framework - checkout - restore_cache: key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }} @@ -18,8 +21,19 @@ jobs: - persist_to_workspace: root: . paths: - - dist - + - dist + - run: + name: starting server locally + command: npm run start + background: true + - run: sleep 90 + - run: + name: Running qa frame work + command: | + cd $HOME/qa-framework + npm install + pwd + # Just tests commited code. deployDev: docker: @@ -56,6 +70,16 @@ jobs: - attach_workspace: at: ./workspace - run: ./deploy.sh DISCOURSE + # Just tests commited code. + devtesting: + docker: + - image: cibuilds/aws + steps: + - checkout + - attach_workspace: + at: ./workspace + - run: echo "proceed deploy" + # deploy to test02 workflows: version: 2 @@ -86,3 +110,9 @@ workflows: filters: branches: only: master-discourse-free + - devtesting: + requires: + - test + filters: + branches: + only: dev-testing From 8a265f83793a04ab51d96ae50478897fb0af9f9e Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 22:41:34 +0530 Subject: [PATCH 02/11] 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 c569578a3..9903fe57a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ jobs: steps: - run: name: checking out qa framework repo - command: git clone --branch master https://github.com/appirio-tech/qa-framework.git ../qa-framework + command: git clone --branch master https://$GITUSER:$GITPASSWD@github.com/appirio-tech/qa-framework.git ../qa-framework - checkout - restore_cache: key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }} From 99ff8ca8f0b96bff90108271d4ab0915ccdda6af Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 22:56:02 +0530 Subject: [PATCH 03/11] 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 9903fe57a..ce5d5c028 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ jobs: steps: - run: name: checking out qa framework repo - command: git clone --branch master https://$GITUSER:$GITPASSWD@github.com/appirio-tech/qa-framework.git ../qa-framework + command: git clone --branch master https://github.com/appirio-tech/qa-framework-js.git ../qa-framework - checkout - restore_cache: key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }} From 8fdfea715652ee3c5f9c5fde421ce3eb5fc1681a Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 22:58:50 +0530 Subject: [PATCH 04/11] 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 ce5d5c028..adb52a1a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ jobs: steps: - run: name: checking out qa framework repo - command: git clone --branch master https://github.com/appirio-tech/qa-framework-js.git ../qa-framework + command: git clone --branch master https://$GITUSER:$GITPASSWD@github.com/appirio-tech/qa-framework-js.git ../qa-framework - checkout - restore_cache: key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }} @@ -32,6 +32,7 @@ jobs: command: | cd $HOME/qa-framework npm install + npm test pwd # Just tests commited code. From 04248b84d8628278f9050694c0a4c9543f23d419 Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 23:12:12 +0530 Subject: [PATCH 05/11] Update config.yml --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index adb52a1a3..19cb8868c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ jobs: steps: - run: name: checking out qa framework repo - command: git clone --branch master https://$GITUSER:$GITPASSWD@github.com/appirio-tech/qa-framework-js.git ../qa-framework + command: git clone --branch develop https://$GITUSER:$GITPASSWD@github.com/appirio-tech/qa-framework-js.git ../qa-framework - checkout - restore_cache: key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }} @@ -31,6 +31,9 @@ jobs: name: Running qa frame work command: | cd $HOME/qa-framework + sudo chmod 777 /usr/local/lib/node_modules + sudo chmod 777 /usr/local/bin + mv -f test/config/ci-config.js test/config/config.js npm install npm test pwd From 68a61affed990dac4c14439700de931457bba616 Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 23:28:09 +0530 Subject: [PATCH 06/11] Update config.yml --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 19cb8868c..90e3ca5a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,6 +37,8 @@ jobs: npm install npm test pwd + - store_test_results: + path: /home/circleci/qa-framework/allure-report # Just tests commited code. deployDev: From 0102c303ed964fe373a9682d2745f60abca54995 Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 23:38:27 +0530 Subject: [PATCH 07/11] 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 90e3ca5a2..cb9878812 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,7 +37,7 @@ jobs: npm install npm test pwd - - store_test_results: + - store_artifacts: path: /home/circleci/qa-framework/allure-report # Just tests commited code. From 3df0b983f0c455a27c27aace7aaf2dc1de66c77d Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Tue, 22 May 2018 23:50:05 +0530 Subject: [PATCH 08/11] Update config.yml --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cb9878812..8835e142a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,6 +33,8 @@ jobs: cd $HOME/qa-framework sudo chmod 777 /usr/local/lib/node_modules sudo chmod 777 /usr/local/bin + sudo echo "127.0.0.1 local.topcoder-dev.com" >>/etc/hosts + sudo echo "127.0.0.1 local.topcoder.com" >>/etc/hosts mv -f test/config/ci-config.js test/config/config.js npm install npm test From ffcad475ecce9699a935ee8ff3da7cf0115721b2 Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Wed, 23 May 2018 00:01:05 +0530 Subject: [PATCH 09/11] Update config.yml --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8835e142a..3b91dbfe7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,8 +33,9 @@ jobs: cd $HOME/qa-framework sudo chmod 777 /usr/local/lib/node_modules sudo chmod 777 /usr/local/bin - sudo echo "127.0.0.1 local.topcoder-dev.com" >>/etc/hosts - sudo echo "127.0.0.1 local.topcoder.com" >>/etc/hosts + echo 127.0.0.1 local.topcoder-dev.com | sudo tee -a /etc/hosts + echo 127.0.0.1 local.topcoder.com | sudo tee -a /etc/hosts + cat /etc/hosts mv -f test/config/ci-config.js test/config/config.js npm install npm test From ba66e352eb93946c1844e24dd90da79ad034024e Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Mon, 28 May 2018 14:59:08 +0530 Subject: [PATCH 10/11] Update config.yml --- .circleci/config.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b91dbfe7..a01b84f19 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -80,14 +80,6 @@ jobs: at: ./workspace - run: ./deploy.sh DISCOURSE # Just tests commited code. - devtesting: - docker: - - image: cibuilds/aws - steps: - - checkout - - attach_workspace: - at: ./workspace - - run: echo "proceed deploy" # deploy to test02 workflows: @@ -119,9 +111,3 @@ workflows: filters: branches: only: master-discourse-free - - devtesting: - requires: - - test - filters: - branches: - only: dev-testing From e9ac5f3a398026c87ae996aeb405933318c98a6e Mon Sep 17 00:00:00 2001 From: Gunasekar-K Date: Mon, 28 May 2018 15:01:30 +0530 Subject: [PATCH 11/11] Update config.yml --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a01b84f19..ee8844bf7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -79,8 +79,7 @@ jobs: - attach_workspace: at: ./workspace - run: ./deploy.sh DISCOURSE - # Just tests commited code. - # deploy to test02 + workflows: version: 2