Skip to content

Commit cb83ec6

Browse files
authored
Merge pull request #2012 from appirio-tech/dev-testing
Dev testing circleci qa framework integration
2 parents 7ed4f45 + e9ac5f3 commit cb83ec6

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.circleci/config.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ version: 2
22
jobs:
33
test:
44
docker:
5-
- image: circleci/node:8.9.4
5+
- image: circleci/node:8.9.4-browsers
66
steps:
7+
- run:
8+
name: checking out qa framework repo
9+
command: git clone --branch develop https://$GITUSER:$GITPASSWD@github.com/appirio-tech/qa-framework-js.git ../qa-framework
710
- checkout
811
- restore_cache:
912
key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }}
@@ -18,8 +21,28 @@ jobs:
1821
- persist_to_workspace:
1922
root: .
2023
paths:
21-
- dist
22-
24+
- dist
25+
- run:
26+
name: starting server locally
27+
command: npm run start
28+
background: true
29+
- run: sleep 90
30+
- run:
31+
name: Running qa frame work
32+
command: |
33+
cd $HOME/qa-framework
34+
sudo chmod 777 /usr/local/lib/node_modules
35+
sudo chmod 777 /usr/local/bin
36+
echo 127.0.0.1 local.topcoder-dev.com | sudo tee -a /etc/hosts
37+
echo 127.0.0.1 local.topcoder.com | sudo tee -a /etc/hosts
38+
cat /etc/hosts
39+
mv -f test/config/ci-config.js test/config/config.js
40+
npm install
41+
npm test
42+
pwd
43+
- store_artifacts:
44+
path: /home/circleci/qa-framework/allure-report
45+
2346
# Just tests commited code.
2447
deployDev:
2548
docker:
@@ -56,6 +79,7 @@ jobs:
5679
- attach_workspace:
5780
at: ./workspace
5881
- run: ./deploy.sh DISCOURSE
82+
5983

6084
workflows:
6185
version: 2

0 commit comments

Comments
 (0)