@@ -24,7 +24,7 @@ install_dependency: &install_dependency
24
24
apk upgrade
25
25
apk add --no-cache jq py-pip sudo
26
26
sudo pip install awscli --upgrade
27
-
27
+
28
28
install_deploysuite : &install_deploysuite
29
29
name : Installation of install_deploysuite.
30
30
command : |
@@ -35,10 +35,10 @@ install_deploysuite: &install_deploysuite
35
35
restore_cache_settings_for_build : &restore_cache_settings_for_build
36
36
key : docker-node-modules-v3-{{ checksum "package-lock.json" }}
37
37
38
- save_cache_settings : &save_cache_settings
39
- key : docker-node-modules-v3-{{ checksum "package-lock.json" }}
38
+ save_cache_settings : &save_cache_settings
39
+ key : docker-node-modules-v3-{{ checksum "package-lock.json" }}
40
40
paths :
41
- - node_modules
41
+ - node_modules
42
42
43
43
build_docker_image : &build_docker_image
44
44
name : Build of Docker image
@@ -59,11 +59,11 @@ jobs:
59
59
# Restoration of node_modules from cache.
60
60
- restore_cache : *restore_cache_settings_for_build
61
61
# Build of Docker image.
62
- - run :
62
+ - run :
63
63
name : " configuring environment"
64
64
command : |
65
65
./awsconfiguration.sh DEV
66
- ./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
66
+ ./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
67
67
- run : *build_docker_image
68
68
# Caching node modules.
69
69
- save_cache : *save_cache_settings
@@ -86,11 +86,11 @@ jobs:
86
86
- run : *install_deploysuite
87
87
# Restoration of node_modules from cache.
88
88
- restore_cache : *restore_cache_settings_for_build
89
- - run :
89
+ - run :
90
90
name : " configuring environment"
91
91
command : |
92
92
./awsconfiguration.sh DEV
93
- ./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
93
+ ./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
94
94
# Build of Docker image.
95
95
- run : *build_docker_image
96
96
# Caching node modules.
@@ -114,11 +114,11 @@ jobs:
114
114
- run : *install_deploysuite
115
115
# Restoration of node_modules from cache.
116
116
- restore_cache : *restore_cache_settings_for_build
117
- - run :
117
+ - run :
118
118
name : " configuring environment"
119
119
command : |
120
120
./awsconfiguration.sh DEV
121
- ./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
121
+ ./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
122
122
# Build of Docker image.
123
123
- run : *build_docker_image
124
124
# Caching node modules.
@@ -142,7 +142,7 @@ jobs:
142
142
- run : *install_deploysuite
143
143
# Restoration of node_modules from cache.
144
144
- restore_cache : *restore_cache_settings_for_build
145
- - run :
145
+ - run :
146
146
name : " configuring environment"
147
147
command : |
148
148
./awsconfiguration.sh PROD
@@ -158,7 +158,7 @@ jobs:
158
158
source awsenvconf
159
159
source buildenvvar
160
160
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
161
-
161
+
162
162
# Build & Deploy against prod api backend
163
163
" build-prod-staging " :
164
164
<< : *defaults
@@ -170,7 +170,7 @@ jobs:
170
170
- run : *install_deploysuite
171
171
# Restoration of node_modules from cache.
172
172
- restore_cache : *restore_cache_settings_for_build
173
- - run :
173
+ - run :
174
174
name : " configuring environment"
175
175
command : |
176
176
./awsconfiguration.sh PROD
@@ -191,7 +191,7 @@ jobs:
191
191
--header "Circle-Token: ${CIRCLE_TOKEN}" \
192
192
--header 'content-type: application/json' \
193
193
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
194
-
194
+
195
195
# Build & Deploy against production backend
196
196
" build-prod " :
197
197
<< : *defaults
@@ -203,15 +203,15 @@ jobs:
203
203
- run : *install_deploysuite
204
204
# Restoration of node_modules from cache.
205
205
- restore_cache : *restore_cache_settings_for_build
206
- - run :
206
+ - run :
207
207
name : " configuring environment"
208
208
command : |
209
209
./awsconfiguration.sh PROD
210
210
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
211
211
# Build of Docker image.
212
212
- run : *build_docker_image
213
213
# Caching node modules.
214
- - save_cache : *save_cache_settings
214
+ - save_cache : *save_cache_settings
215
215
# Deployment.
216
216
- deploy :
217
217
name : Running MasterScript
@@ -224,19 +224,19 @@ jobs:
224
224
--header "Circle-Token: ${CIRCLE_TOKEN}" \
225
225
--header 'content-type: application/json' \
226
226
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
227
-
227
+
228
228
# Automated Smoke Testing against Staging
229
229
Smoke-Testing-On-Staging :
230
230
<< : *defaults
231
- steps :
231
+ steps :
232
232
# Initialization.
233
233
- checkout
234
234
- setup_remote_docker
235
235
- run : *install_dependency
236
236
- run : *install_deploysuite
237
237
# Restoration of node_modules from cache.
238
238
- restore_cache : *restore_cache_settings_for_build
239
- - run :
239
+ - run :
240
240
name : " configuring environment"
241
241
command : |
242
242
./awsconfiguration.sh PROD
@@ -250,19 +250,19 @@ jobs:
250
250
./automated-smoke-test/smoketest.sh automation-config-staging.json prod
251
251
- store_artifacts :
252
252
path : ./automated-smoke-test/test-results
253
-
253
+
254
254
# Automated Smoke Testing against Production
255
255
Smoke-Testing-On-Production :
256
256
<< : *defaults
257
- steps :
257
+ steps :
258
258
# Initialization.
259
259
- checkout
260
260
- setup_remote_docker
261
261
- run : *install_dependency
262
262
- run : *install_deploysuite
263
263
# Restoration of node_modules from cache.
264
264
- restore_cache : *restore_cache_settings_for_build
265
- - run :
265
+ - run :
266
266
name : " configuring environment"
267
267
command : |
268
268
./awsconfiguration.sh PROD
@@ -290,7 +290,7 @@ jobs:
290
290
- run :
291
291
name : Config Git
292
292
command : git config --global url."https://git@".insteadOf git://
293
- - run :
293
+ - run :
294
294
name : App npm install
295
295
command : npm install
296
296
no_output_timeout : 20m
@@ -299,7 +299,7 @@ jobs:
299
299
paths :
300
300
- node_modules
301
301
- run : npm test
302
-
302
+
303
303
Performance-Testing :
304
304
docker :
305
305
# specify the version you desire here
@@ -337,7 +337,7 @@ jobs:
337
337
338
338
- store_artifacts :
339
339
path : target/jmeter/reports
340
-
340
+
341
341
workflows :
342
342
version : 2
343
343
Build :
@@ -349,44 +349,44 @@ workflows:
349
349
filters :
350
350
branches :
351
351
only :
352
- - free
352
+ - reskin
353
353
# This is alternate dev env for parallel testing
354
354
- " build-test " :
355
- context : org-global
355
+ context : org-global
356
356
filters :
357
357
branches :
358
- only :
359
- - circleci-fix
358
+ only :
359
+ - debug-CMS-error
360
360
# This is alternate dev env for parallel testing
361
361
- " build-qa " :
362
- context : org-global
362
+ context : org-global
363
363
filters :
364
364
branches :
365
365
only :
366
- - free
366
+ - develop
367
367
# This is beta env for production soft releases
368
368
- " build-prod-beta " :
369
369
context : org-global
370
370
filters :
371
371
branches :
372
372
only :
373
- - social-share-thumb
373
+ - reskin
374
374
# This is stage env for production QA releases
375
375
- " build-prod-staging " :
376
- context : org-global
376
+ context : org-global
377
377
filters : &filters-staging
378
378
branches :
379
379
only :
380
380
- develop
381
381
- stat_marathon_match_link
382
- # Production builds are exectuted
382
+ # Production builds are exectuted
383
383
# when PR is merged to the master
384
384
# Don't change anything in this configuration
385
- # That might trigger wrong branch to be
385
+ # That might trigger wrong branch to be
386
386
# deployed on the production
387
387
# master branch.
388
388
- " build-prod " :
389
- context : org-global
389
+ context : org-global
390
390
filters : &filters-prod
391
391
branches :
392
392
only :
0 commit comments