Skip to content

Commit f7baf2d

Browse files
authored
Merge pull request #2749 from appirio-tech/dev
master script deployment changes integration [skip ci]
2 parents ced887b + a0605b9 commit f7baf2d

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

.circleci/config.yml

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ jobs:
44
docker:
55
- image: circleci/node:8.9.4-browsers
66
steps:
7+
- run:
8+
name: installing dependency
9+
command: |
10+
sudo apt install python-dev python-pip -y
11+
sudo pip install awscli --upgrade
12+
- run:
13+
name: checking out tc-deploy for environment
14+
command: |
15+
git clone --branch v1.2 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
716
- checkout
817
- restore_cache:
918
key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }}
@@ -12,9 +21,16 @@ jobs:
1221
key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }}
1322
paths:
1423
- node_modules
15-
- run: npm run lint
16-
- run: npm run test
17-
- run: npm run build
24+
- run:
25+
name: checking out tc-deploy for environment
26+
command: |
27+
cp ./../buildscript/buildenv.sh .
28+
./buildenv.sh -e DEV -b dev-connectapp-buildvar
29+
./buildenv.sh -e PROD -b prod-connectapp-buildvar
30+
source buildenvvar
31+
npm run lint
32+
npm run test
33+
npm run build
1834
- persist_to_workspace:
1935
root: .
2036
paths:
@@ -31,9 +47,12 @@ jobs:
3147
- deploy:
3248
name: Running MasterScript
3349
command: |
34-
git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
50+
git clone --branch v1.2 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
3551
cp ./../buildscript/master_deploy.sh .
36-
./master_deploy.sh -d CFRONT -e DEV -s connectapp -c false
52+
cp ./../buildscript/buildenv.sh .
53+
./buildenv.sh -e DEV -b dev-connectapp-deployvar
54+
source buildenvvar
55+
./master_deploy.sh -d CFRONT -e DEV -c false
3756
# deploy to test02
3857
deployTest02:
3958
docker:
@@ -54,9 +73,12 @@ jobs:
5473
- deploy:
5574
name: Running MasterScript
5675
command: |
57-
git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
76+
git clone --branch v1.2 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
5877
cp ./../buildscript/master_deploy.sh .
59-
./master_deploy.sh -d CFRONT -e PROD -s connectapp
78+
cp ./../buildscript/buildenv.sh .
79+
./buildenv.sh -e PROD -b prod-connectapp-deployvar
80+
source buildenvvar
81+
./master_deploy.sh -d CFRONT -e PROD -c false
6082
6183
deployDiscourseFree:
6284
docker:

0 commit comments

Comments
 (0)