prima-twig 0.42.4 → 0.42.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/twig-feature +1 -55
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e04c0b32d19e296402a4998cffe856120710715b910aae9a4d05d3404160178
|
|
4
|
+
data.tar.gz: af3f5c775bb20b420709bd32e4856bf866c9b57b494076f910dd592c7f3d8b08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf98fe6dcda03e13c388e21e4cf52ea2681a06f1b41b74d5f3f1fb4bd56e5dbd8503161ebda5198e643062f75cf3ad8cccc2104f5ae2830f4b2234fb4a43dc84
|
|
7
|
+
data.tar.gz: 9e2662899a9cdf64ac09fd5e6c84dff00ab17d4f0e21461a7aec643aa480320d33607cb233ab78540bedaf83f3ef991943a5acc29a81a206dab6b57a7218d545
|
data/bin/twig-feature
CHANGED
|
@@ -996,7 +996,6 @@ class Release
|
|
|
996
996
|
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
|
997
997
|
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
|
998
998
|
create_fidaty_artifact(@projects["fidaty"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
999
|
-
# create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id, asg_stack_name) unless artifact_exists?('prima-artifacts', "backoffice/#{@projects["backoffice"][:revision]}-#{deploy_id}.zip")
|
|
1000
999
|
create_peano_artifact(@projects["peano"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
1001
1000
|
create_rogoreport_artifact(@projects["rogoreport"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport_qa-#{@projects["rogoreport"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
1002
1001
|
create_assange_artifact(@projects["assange"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
@@ -1656,7 +1655,6 @@ class Release
|
|
|
1656
1655
|
|
|
1657
1656
|
wait_for_stack_ready(stack_name_web) unless stack_ready?(stack_name_web)
|
|
1658
1657
|
wait_for_stack_ready(stack_name_consumer) unless stack_ready?(stack_name_consumer)
|
|
1659
|
-
wait_for_stack_ready(stack_name_backoffice) unless stack_ready?(stack_name_backoffice)
|
|
1660
1658
|
wait_for_stack_ready(stack_name_ermes) unless stack_ready?(stack_name_ermes)
|
|
1661
1659
|
wait_for_stack_ready(stack_name_fidaty) unless stack_ready?(stack_name_fidaty)
|
|
1662
1660
|
wait_for_stack_ready(stack_name_peano) unless stack_ready?(stack_name_peano)
|
|
@@ -1669,7 +1667,6 @@ class Release
|
|
|
1669
1667
|
update_service_defaults(stack_name_web)
|
|
1670
1668
|
update_service_defaults(stack_name_consumer)
|
|
1671
1669
|
update_service_defaults(stack_name_urania)
|
|
1672
|
-
update_service_defaults(stack_name_backoffice)
|
|
1673
1670
|
update_service_defaults(stack_name_ermes)
|
|
1674
1671
|
update_service_defaults(stack_name_bburago)
|
|
1675
1672
|
update_service_defaults(stack_name_hal9000)
|
|
@@ -1684,7 +1681,6 @@ class Release
|
|
|
1684
1681
|
|
|
1685
1682
|
activia_hostname = get_route53_hostname(stack_name_activia)
|
|
1686
1683
|
assange_hostname = get_route53_hostname(stack_name_assange)
|
|
1687
|
-
backoffice_hostname = get_route53_hostname(stack_name_backoffice)
|
|
1688
1684
|
bburago_hostname = get_route53_hostname(stack_name_bburago)
|
|
1689
1685
|
borat_hostname = get_route53_hostname(stack_name_borat)
|
|
1690
1686
|
ermes_hostname = get_route53_hostname(stack_name_ermes)
|
|
@@ -1714,8 +1710,7 @@ class Release
|
|
|
1714
1710
|
> Assange url: https://#{assange_hostname}
|
|
1715
1711
|
> Activia url: http://#{activia_hostname}:10041
|
|
1716
1712
|
> Skynet url: http://#{skynet_hostname}:8050
|
|
1717
|
-
> Roger url: http://#{roger_hostname}:10051
|
|
1718
|
-
> Backoffice (legacy) url: https://#{backoffice_hostname}"
|
|
1713
|
+
> Roger url: http://#{roger_hostname}:10051"
|
|
1719
1714
|
projects_text.concat "
|
|
1720
1715
|
> Crash url: https://#{crash_hostname}" if deploy_crash?
|
|
1721
1716
|
projects_text.concat "
|
|
@@ -2614,55 +2609,6 @@ class Release
|
|
|
2614
2609
|
Dir.chdir '../../'
|
|
2615
2610
|
end
|
|
2616
2611
|
|
|
2617
|
-
def create_backoffice_artifact(revision, deploy_id, asg_stack_name)
|
|
2618
|
-
output "Preparo l'artifact backoffice .zip\n".yellow
|
|
2619
|
-
|
|
2620
|
-
git_checkout_version('backoffice', revision)
|
|
2621
|
-
|
|
2622
|
-
Dir.chdir 'projects/backoffice'
|
|
2623
|
-
|
|
2624
|
-
['node_modules'].each do |dir|
|
|
2625
|
-
unless File.directory?(dir)
|
|
2626
|
-
if File.directory?("../../../backoffice/#{dir}")
|
|
2627
|
-
exec_step "rsync -a ../../../backoffice/#{dir} ."
|
|
2628
|
-
end
|
|
2629
|
-
end
|
|
2630
|
-
end
|
|
2631
|
-
|
|
2632
|
-
stack_name_web = "ecs-task-web-qa-notneeded"
|
|
2633
|
-
web_qa_host = get_route53_hostname(stack_name_web)
|
|
2634
|
-
webri_qa_host = web_qa_host.sub("www", "wwwri")
|
|
2635
|
-
|
|
2636
|
-
ip_qa_host = ec2_ip_address(asg_stack_name)
|
|
2637
|
-
|
|
2638
|
-
if @qainit
|
|
2639
|
-
#exec_step 'cp docker-compose-ci.yml docker-compose.yml'
|
|
2640
|
-
exec_step 'prepare-docker-compose --directory backoffice && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2641
|
-
[
|
|
2642
|
-
"docker-compose build",
|
|
2643
|
-
"docker-compose run -w $PWD -e PHANTOMJS_BIN=$PWD/node_modules/grunt-selenium-webdriver/node_modules/phantomjs/lib/phantom/bin/phantomjs web 'sed -i \"s/web-qa-url/#{web_qa_host}/g\" Gruntfile.js && sed -i \"s/web-qa-ri-url/#{webri_qa_host}/g\" Gruntfile.js && sed -i \"s/qa-ip/#{ip_qa_host}/g\" Gruntfile.js && bower install --allow-root --config.interactive=false && grunt qa'"
|
|
2644
|
-
].each do |cmd|
|
|
2645
|
-
execute_command cmd
|
|
2646
|
-
end
|
|
2647
|
-
|
|
2648
|
-
cleanup_containers
|
|
2649
|
-
else
|
|
2650
|
-
[
|
|
2651
|
-
"docker-compose build",
|
|
2652
|
-
"rm -rf src/ && git checkout -- .",
|
|
2653
|
-
"docker run -v $PWD:/code -w /code -e PHANTOMJS_BIN=/code/node_modules/grunt-selenium-webdriver/node_modules/phantomjs/lib/phantom/bin/phantomjs web 'sed -i \"s/web-qa-url/#{web_qa_host}/g\" Gruntfile.js && sed -i \"s/web-qa-ri-url/#{webri_qa_host}/g\" Gruntfile.js && sed -i \"s/qa-ip/#{ip_qa_host}/g\" Gruntfile.js && npm install && bower install --allow-root --config.interactive=false && grunt qa'"
|
|
2654
|
-
].each do |cmd|
|
|
2655
|
-
execute_command cmd
|
|
2656
|
-
end
|
|
2657
|
-
end
|
|
2658
|
-
|
|
2659
|
-
artifact_path = '/tmp/backoffice.zip'
|
|
2660
|
-
exec_step "rm -f #{artifact_path} && zip -9 -r #{artifact_path} bin/"
|
|
2661
|
-
upload_artifact(artifact_path, "backoffice/#{revision}-#{deploy_id}.zip")
|
|
2662
|
-
|
|
2663
|
-
Dir.chdir '../../'
|
|
2664
|
-
end
|
|
2665
|
-
|
|
2666
2612
|
def create_prima_artifact(revision, branch_name, deploy_id, minimal = false)
|
|
2667
2613
|
# @projects["prima"][:revision], @projects["prima"][:name], deploy_id, true
|
|
2668
2614
|
output "Preparo l'artifact prima .zip\n".yellow
|