@@ -24,7 +24,7 @@ install_dependency: &install_dependency
2424 apk upgrade
2525 apk add --no-cache jq py-pip sudo
2626 sudo pip install awscli --upgrade
27-
27+
2828install_deploysuite : &install_deploysuite
2929 name : Installation of install_deploysuite.
3030 command : |
@@ -35,10 +35,10 @@ install_deploysuite: &install_deploysuite
3535restore_cache_settings_for_build : &restore_cache_settings_for_build
3636 key : docker-node-modules-v3-{{ checksum "package-lock.json" }}
3737
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" }}
4040 paths :
41- - node_modules
41+ - node_modules
4242
4343build_docker_image : &build_docker_image
4444 name : Build of Docker image
@@ -57,13 +57,13 @@ jobs:
5757 - run : *install_dependency
5858 - run : *install_deploysuite
5959 # Restoration of node_modules from cache.
60- # - restore_cache: *restore_cache_settings_for_build
60+ - restore_cache : *restore_cache_settings_for_build
6161 # Build of Docker image.
62- - run :
62+ - run :
6363 name : " configuring environment"
6464 command : |
6565 ./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
6767 - run : *build_docker_image
6868 # Caching node modules.
6969 - save_cache : *save_cache_settings
@@ -86,11 +86,11 @@ jobs:
8686 - run : *install_deploysuite
8787 # Restoration of node_modules from cache.
8888 - restore_cache : *restore_cache_settings_for_build
89- - run :
89+ - run :
9090 name : " configuring environment"
9191 command : |
9292 ./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
9494 # Build of Docker image.
9595 - run : *build_docker_image
9696 # Caching node modules.
@@ -114,11 +114,11 @@ jobs:
114114 - run : *install_deploysuite
115115 # Restoration of node_modules from cache.
116116 - restore_cache : *restore_cache_settings_for_build
117- - run :
117+ - run :
118118 name : " configuring environment"
119119 command : |
120120 ./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
122122 # Build of Docker image.
123123 - run : *build_docker_image
124124 # Caching node modules.
@@ -142,7 +142,7 @@ jobs:
142142 - run : *install_deploysuite
143143 # Restoration of node_modules from cache.
144144 - restore_cache : *restore_cache_settings_for_build
145- - run :
145+ - run :
146146 name : " configuring environment"
147147 command : |
148148 ./awsconfiguration.sh PROD
@@ -158,7 +158,7 @@ jobs:
158158 source awsenvconf
159159 source buildenvvar
160160 ./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
161-
161+
162162 # Build & Deploy against prod api backend
163163 " build-prod-staging " :
164164 << : *defaults
@@ -170,7 +170,7 @@ jobs:
170170 - run : *install_deploysuite
171171 # Restoration of node_modules from cache.
172172 - restore_cache : *restore_cache_settings_for_build
173- - run :
173+ - run :
174174 name : " configuring environment"
175175 command : |
176176 ./awsconfiguration.sh PROD
@@ -191,7 +191,7 @@ jobs:
191191 --header "Circle-Token: ${CIRCLE_TOKEN}" \
192192 --header 'content-type: application/json' \
193193 --data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
194-
194+
195195 # Build & Deploy against production backend
196196 " build-prod " :
197197 << : *defaults
@@ -203,15 +203,15 @@ jobs:
203203 - run : *install_deploysuite
204204 # Restoration of node_modules from cache.
205205 - restore_cache : *restore_cache_settings_for_build
206- - run :
206+ - run :
207207 name : " configuring environment"
208208 command : |
209209 ./awsconfiguration.sh PROD
210210 ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
211211 # Build of Docker image.
212212 - run : *build_docker_image
213213 # Caching node modules.
214- - save_cache : *save_cache_settings
214+ - save_cache : *save_cache_settings
215215 # Deployment.
216216 - deploy :
217217 name : Running MasterScript
@@ -224,19 +224,19 @@ jobs:
224224 --header "Circle-Token: ${CIRCLE_TOKEN}" \
225225 --header 'content-type: application/json' \
226226 --data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
227-
227+
228228 # Automated Smoke Testing against Staging
229229 Smoke-Testing-On-Staging :
230230 << : *defaults
231- steps :
231+ steps :
232232 # Initialization.
233233 - checkout
234234 - setup_remote_docker
235235 - run : *install_dependency
236236 - run : *install_deploysuite
237237 # Restoration of node_modules from cache.
238238 - restore_cache : *restore_cache_settings_for_build
239- - run :
239+ - run :
240240 name : " configuring environment"
241241 command : |
242242 ./awsconfiguration.sh PROD
@@ -250,19 +250,19 @@ jobs:
250250 ./automated-smoke-test/smoketest.sh automation-config-staging.json prod
251251 - store_artifacts :
252252 path : ./automated-smoke-test/test-results
253-
253+
254254 # Automated Smoke Testing against Production
255255 Smoke-Testing-On-Production :
256256 << : *defaults
257- steps :
257+ steps :
258258 # Initialization.
259259 - checkout
260260 - setup_remote_docker
261261 - run : *install_dependency
262262 - run : *install_deploysuite
263263 # Restoration of node_modules from cache.
264264 - restore_cache : *restore_cache_settings_for_build
265- - run :
265+ - run :
266266 name : " configuring environment"
267267 command : |
268268 ./awsconfiguration.sh PROD
@@ -287,7 +287,10 @@ jobs:
287287 - checkout
288288 - restore_cache :
289289 key : test-node-modules-{{ checksum "package-lock.json" }}
290- - run :
290+ - run :
291+ name : Config Git
292+ command : git config --global url."https://git@".insteadOf git://
293+ - run :
291294 name : App npm install
292295 command : npm install
293296 no_output_timeout : 20m
@@ -296,7 +299,7 @@ jobs:
296299 paths :
297300 - node_modules
298301 - run : npm test
299-
302+
300303 Performance-Testing :
301304 docker :
302305 # specify the version you desire here
@@ -334,7 +337,7 @@ jobs:
334337
335338 - store_artifacts :
336339 path : target/jmeter/reports
337-
340+
338341workflows :
339342 version : 2
340343 Build :
@@ -350,14 +353,14 @@ workflows:
350353 - reskin
351354 # This is alternate dev env for parallel testing
352355 - " build-test " :
353- context : org-global
356+ context : org-global
354357 filters :
355358 branches :
356- only :
359+ only :
357360 - circleci-fix
358361 # This is alternate dev env for parallel testing
359362 - " build-qa " :
360- context : org-global
363+ context : org-global
361364 filters :
362365 branches :
363366 only :
@@ -371,20 +374,20 @@ workflows:
371374 - thrive-discord-button
372375 # This is stage env for production QA releases
373376 - " build-prod-staging " :
374- context : org-global
377+ context : org-global
375378 filters : &filters-staging
376379 branches :
377380 only :
378381 - develop
379382 - stat_marathon_match_link
380- # Production builds are exectuted
383+ # Production builds are exectuted
381384 # when PR is merged to the master
382385 # Don't change anything in this configuration
383- # That might trigger wrong branch to be
386+ # That might trigger wrong branch to be
384387 # deployed on the production
385388 # master branch.
386389 - " build-prod " :
387- context : org-global
390+ context : org-global
388391 filters : &filters-prod
389392 branches :
390393 only :
0 commit comments