prima-twig 0.36.70 → 0.36.71

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +15 -90
  3. data/bin/twig-update-ami +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a751182caae21269a73216d8cc3c527032cb7cd
4
- data.tar.gz: f77d0785940f4e5c8c822fb128a7cf694e44eaac
3
+ metadata.gz: 3cb596d68ce96531baa1721e0866ad4f57639ae9
4
+ data.tar.gz: 0fae67f256bc4a81763296043e2159712b485ea5
5
5
  SHA512:
6
- metadata.gz: 6d704b183ee8ce45d256def6fe6d3240548cacd768dab9994ba7d16a1d82b4e48b2f158a3ba756718c6b23698ea3ec6e27f1448242f603a0d323fb6aa8e83830
7
- data.tar.gz: 2597e644070831c1ceee15a915d040753cc2c4d3d82f0fa654497412bc6b4c7a58f1dd35303c3790d6f5557dc35d1956abadbfd824995fd737aa57d3ce8e5608
6
+ metadata.gz: 72ad55b61a19fbff9cc81d28a544c07a6433bd61f38164b5d6ccc42ef6f562e716076ed0592ba4505d7dace4bff1aa3d7e2a07819c978e9e048533a389d9b63b
7
+ data.tar.gz: ae951fd7b725f4db1d444e64ed619d2749518934fcd90e85f0c6e0c2df1a8c4964187056881d2188486712742d6029cd28cde5e57700c5f4e76e8bcdd1f7c805
data/bin/twig-feature CHANGED
@@ -421,7 +421,6 @@ class Release
421
421
  `git checkout master`
422
422
 
423
423
  if `git branch -l | grep #{feature_number}`.size > 0
424
- # `git push -f origin #{feature_number} && git branch -d #{feature_number}`
425
424
  `git checkout #{feature_number} && git pull`
426
425
  else
427
426
  `git checkout -b #{feature_number}`
@@ -431,7 +430,6 @@ class Release
431
430
 
432
431
  @projects.each_key do |project_key|
433
432
  if @projects[project_key][:revision]
434
- # git_checkout_version(project_key, @projects[project_key][:revision])
435
433
  branches += "#{project_key}:#{@projects[project_key][:name]}:#{@projects[project_key][:revision]}:#{@projects[project_key][:default_branch]}\n"
436
434
  end
437
435
  end
@@ -473,7 +471,6 @@ class Release
473
471
  project = line.split(':')
474
472
  @projects[project[0]] = select_branch_to_deploy(project[0], project[1])
475
473
  @projects[project[0]][:default_branch] = project[3]
476
- # @projects[project[0]] = {:name=> project[1], :revision=> project[2], :default_branch=> project[3]}
477
474
  end
478
475
  end
479
476
 
@@ -481,7 +478,6 @@ class Release
481
478
 
482
479
  @projects.each_key do |project_key|
483
480
  if @projects[project_key][:revision]
484
- # git_checkout_version(project_key, @projects[project_key][:revision])
485
481
  branches += "#{project_key}:#{@projects[project_key][:name]}:#{@projects[project_key][:revision]}:#{@projects[project_key][:default_branch]}"
486
482
  end
487
483
  end
@@ -660,9 +656,7 @@ class Release
660
656
  create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
661
657
  create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
662
658
  create_fidaty_artifact(@projects["fidaty"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-#{deploy_id}-qa.tar.gz")
663
- # unless @qainit
664
- create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "backoffice/#{@projects["backoffice"][:revision]}-#{deploy_id}.zip")
665
- # end
659
+ create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "backoffice/#{@projects["backoffice"][:revision]}-#{deploy_id}.zip")
666
660
  create_peano_artifact(@projects["peano"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-#{deploy_id}-qa.tar.gz")
667
661
  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")
668
662
  create_assange_artifact(@projects["assange"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-#{deploy_id}-qa.tar.gz")
@@ -1567,7 +1561,6 @@ class Release
1567
1561
  execute_command "docker-compose build web"
1568
1562
 
1569
1563
  if @qainit
1570
- execute_command 'pwd && ls -l && ls config'
1571
1564
  [ "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
1572
1565
  '-c' 'mix local.hex --force && mix hex.info && \
1573
1566
  mix deps.get && mix compile && mix deps.compile && \
@@ -1587,12 +1580,7 @@ class Release
1587
1580
  end
1588
1581
  end
1589
1582
 
1590
- if @qainit
1591
- execute_command 'pwd && ls -l'
1592
- artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
1593
- else
1594
- artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
1595
- end
1583
+ artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
1596
1584
  upload_artifact(artifact_path, "microservices/urania/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
1597
1585
 
1598
1586
  Dir.chdir '../../'
@@ -1627,10 +1615,8 @@ class Release
1627
1615
  end
1628
1616
 
1629
1617
  if @qainit
1630
- execute_command 'pwd && ls -l && ls config'
1631
1618
  [ "docker-compose run --rm -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
1632
- '-c' 'pwd && ls -la && \
1633
- sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
1619
+ '-c' 'sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
1634
1620
  sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
1635
1621
  mix local.hex --force && mix hex.info && \
1636
1622
  mix deps.get && mix compile && mix deps.compile && \
@@ -1660,12 +1646,7 @@ class Release
1660
1646
  end
1661
1647
  end
1662
1648
 
1663
- if @qainit
1664
- execute_command 'pwd && ls -l'
1665
- artifact_path = Dir.glob("_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
1666
- else
1667
- artifact_path = Dir.glob("_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
1668
- end
1649
+ artifact_path = Dir.glob("_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
1669
1650
  upload_artifact(artifact_path, "microservices/ermes/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
1670
1651
 
1671
1652
  Dir.chdir '../../'
@@ -1693,9 +1674,7 @@ class Release
1693
1674
  decrypt_secrets()
1694
1675
 
1695
1676
  if @qainit
1696
- # exec_step 'cp docker-compose.yml docker-compose-ci.yml'
1697
1677
  exec_step 'prepare-docker-compose --directory crash && cp docker-compose-qainit.yml docker-compose.yml'
1698
- # "docker-compose run -v /var/cache/ci/primait/qainit/master/project/projects/crash/:/code -w /code -u root -e WS_ENDPOINT=#{ws_endpoint} -e GRAPHQL_ENDPOINT=#{frontend_endpoint} -e MIX_ENV=qa crash_web \
1699
1678
  [
1700
1679
  'docker-compose build web',
1701
1680
  "docker-compose run -w $PWD -u root -e WS_ENDPOINT=#{ws_endpoint} -e GRAPHQL_ENDPOINT=#{frontend_endpoint} -e MIX_ENV=qa web \
@@ -1742,13 +1721,7 @@ class Release
1742
1721
  end
1743
1722
  end
1744
1723
 
1745
- if @qainit
1746
- execute_command 'pwd && ls -l'
1747
- artifact_path = Dir.glob('_build/qa/rel/crash/releases/*/crash.tar.gz').first
1748
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/crash/_build/qa/rel/crash/releases/*/crash.tar.gz").first
1749
- else
1750
- artifact_path = Dir.glob('_build/qa/rel/crash/releases/*/crash.tar.gz').first
1751
- end
1724
+ artifact_path = Dir.glob('_build/qa/rel/crash/releases/*/crash.tar.gz').first
1752
1725
  upload_artifact(artifact_path, "microservices/crash/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
1753
1726
 
1754
1727
  Dir.chdir '../../'
@@ -1789,12 +1762,7 @@ class Release
1789
1762
  end
1790
1763
  end
1791
1764
 
1792
- if @qainit
1793
- execute_command 'pwd && ls -l'
1794
- artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
1795
- else
1796
- artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
1797
- end
1765
+ artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
1798
1766
  upload_artifact(artifact_path, "microservices/bburago/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
1799
1767
 
1800
1768
  Dir.chdir '../../'
@@ -1837,12 +1805,7 @@ class Release
1837
1805
  end
1838
1806
  end
1839
1807
 
1840
- if @qainit
1841
- execute_command 'pwd && ls -l'
1842
- artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
1843
- else
1844
- artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
1845
- end
1808
+ artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
1846
1809
  upload_artifact(artifact_path, "microservices/hal9000/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
1847
1810
 
1848
1811
  Dir.chdir '../../'
@@ -1895,12 +1858,7 @@ class Release
1895
1858
  end
1896
1859
  end
1897
1860
 
1898
- if @qainit
1899
- execute_command 'pwd && ls -l'
1900
- artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
1901
- else
1902
- artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
1903
- end
1861
+ artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
1904
1862
  upload_artifact(artifact_path, "microservices/fidaty/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
1905
1863
 
1906
1864
  Dir.chdir '../../'
@@ -1928,8 +1886,7 @@ class Release
1928
1886
  [
1929
1887
  "docker-compose build web",
1930
1888
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
1931
- '-c' 'pwd && ls -la && \
1932
- mix local.hex --force && mix hex.info && \
1889
+ '-c' 'mix local.hex --force && mix hex.info && \
1933
1890
  sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
1934
1891
  sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
1935
1892
  mix deps.get && mix compile && mix deps.compile && \
@@ -1953,12 +1910,7 @@ class Release
1953
1910
  end
1954
1911
  end
1955
1912
 
1956
- if @qainit
1957
- execute_command 'pwd && ls -l'
1958
- artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
1959
- else
1960
- artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
1961
- end
1913
+ artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
1962
1914
  upload_artifact(artifact_path, "microservices/peano/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
1963
1915
 
1964
1916
  Dir.chdir '../../'
@@ -2010,12 +1962,7 @@ class Release
2010
1962
  end
2011
1963
  end
2012
1964
 
2013
- if @qainit
2014
- execute_command 'pwd && ls -l'
2015
- artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
2016
- else
2017
- artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
2018
- end
1965
+ artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
2019
1966
  upload_artifact(artifact_path, "microservices/rogoreport/rogoreport_qa-#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
2020
1967
 
2021
1968
  Dir.chdir '../../'
@@ -2063,12 +2010,7 @@ class Release
2063
2010
  end
2064
2011
  end
2065
2012
 
2066
- if @qainit
2067
- execute_command 'pwd && ls -l'
2068
- artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
2069
- else
2070
- artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
2071
- end
2013
+ artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
2072
2014
  upload_artifact(artifact_path, "microservices/assange/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
2073
2015
 
2074
2016
  Dir.chdir '../../'
@@ -2094,12 +2036,8 @@ class Release
2094
2036
  exec_step 'prepare-docker-compose --directory activia && cp docker-compose-qainit.yml docker-compose.yml'
2095
2037
  [
2096
2038
  "docker-compose build web",
2097
- "cat docker-compose-ci.yml",
2098
- "cat docker-compose-qainit.yml",
2099
- "cat docker-compose.yml",
2100
2039
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2101
- '-c' 'pwd && ls -al && \
2102
- sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
2040
+ '-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
2103
2041
  sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
2104
2042
  mix local.hex --force && mix hex.info && \
2105
2043
  mix deps.get && mix compile && mix deps.compile && \
@@ -2149,7 +2087,6 @@ class Release
2149
2087
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2150
2088
  exec_step 'prepare-docker-compose --directory bolla && cp docker-compose-qainit.yml docker-compose.yml'
2151
2089
  [
2152
- "pwd && cat docker-compose.yml",
2153
2090
  "docker-compose build web",
2154
2091
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2155
2092
  '-c' 'mix local.hex --force && mix hex.info && \
@@ -2162,7 +2099,7 @@ class Release
2162
2099
  else
2163
2100
  [
2164
2101
  "docker-compose build web",
2165
- "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
2102
+ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh bolla_web \
2166
2103
  '-c' 'mix local.hex --force && mix hex.info && \
2167
2104
  mix deps.get && mix compile && mix deps.compile && \
2168
2105
  rm -rf _build/qa/rel/ && \
@@ -2211,8 +2148,7 @@ class Release
2211
2148
  if @qainit
2212
2149
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2213
2150
  exec_step 'prepare-docker-compose --directory borat && cp docker-compose-qainit.yml docker-compose.yml'
2214
- [
2215
- "pwd && cat docker-compose.yml",
2151
+ [
2216
2152
  "docker-compose build backend",
2217
2153
  "docker-compose run -w $PWD -u root -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh backend \
2218
2154
  '-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
@@ -2260,7 +2196,6 @@ class Release
2260
2196
  end
2261
2197
 
2262
2198
  if @qainit
2263
- execute_command 'pwd && ls -l'
2264
2199
  artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
2265
2200
  else
2266
2201
  artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
@@ -2300,7 +2235,6 @@ class Release
2300
2235
  [
2301
2236
  "docker-compose build workers",
2302
2237
  "docker-compose build bower",
2303
- # "rm -rf src/ && git checkout -- .",
2304
2238
  "docker-compose run -e GIT_DIR=$PWD -w $PWD bower install --allow-root",
2305
2239
  "docker-compose run -w $PWD -e PHANTOMJS_BIN=/code/node_modules/grunt-selenium-webdriver/node_modules/phantomjs/bin/phantomjs --entrypoint /bin/bash workers '-c' '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 && npm install && grunt qa'"
2306
2240
  ].each do |cmd|
@@ -2317,15 +2251,6 @@ class Release
2317
2251
  end
2318
2252
  end
2319
2253
 
2320
- if @qainit
2321
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/borat/_build/qa/rel/backend/releases/*/backend.tar.gz").first
2322
- execute_command 'pwd && ls -l'
2323
- # execute_command 'ls -l /var/cache/ci'
2324
- # execute_command 'ls -l /var/cache/ci/project'
2325
- # execute_command 'ls -l /var/cache/ci/project/projects'
2326
- # execute_command 'ls -l /var/cache/ci/project/projects/backoffice'
2327
- # execute_command 'sudo cd /var/cache/ci/project/projects/backoffice'
2328
- end
2329
2254
  artifact_path = '/tmp/backoffice.zip'
2330
2255
  exec_step "rm -f #{artifact_path} && zip -9 -r #{artifact_path} bin/"
2331
2256
  upload_artifact(artifact_path, "backoffice/#{revision}-#{deploy_id}.zip")
data/bin/twig-update-ami CHANGED
@@ -30,7 +30,7 @@ class TwigUpdateAmi
30
30
 
31
31
  def update_amis(ami_id, ami_name, ami_description, only_staging)
32
32
  @instances['amis'].each do |ami|
33
- if only_staging and ami['json'] != 'ecs.json'
33
+ if only_staging and ami['json'] != 'ecs-allinone.json'
34
34
  output "skipping #{ami['json']} because only_staging enabled".yellow
35
35
  next
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.70
4
+ version: 0.36.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino