prima-twig 0.36.54 → 0.36.55

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +6 -44
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41926bad4b89349cc9ce41f7362172a616555490
4
- data.tar.gz: ec5d472b9f55b5e712089a559b531d288fd77949
3
+ metadata.gz: a1d32c7d8694e84d3374f49993e357a94d978fa5
4
+ data.tar.gz: a78c409551d7a94664a36a394c643a29330df72d
5
5
  SHA512:
6
- metadata.gz: 92c0c13f3d11c332501e141b66a8bb920a5f593d6e08502aca5d50846560eda71ae3272cfe98ef7ccbdd98adf4fdebc58790fc208b9d895ebf1d8a24b0f88bb4
7
- data.tar.gz: 7d4a9d3fae9f2a02fe932c59c728a77820834ccb9fa1b47b27826c1ffb1a7540ccca372481284a720edfd9fdae11948ad581c8704bd2873715178976604bcdea
6
+ metadata.gz: 521b6e519aef685a038bc2862f48e34492d96ec92019e3e6e879c5d3b88d98f584d69cf0e4d258fcd7bc345dac1a7b4fe0251653a10b2c688b24b244cbdec408
7
+ data.tar.gz: 27d66a73b9a03380215f243e499b6710e275ef44e13467310874d6b299506033df6d903f528562acc0e83dda6b356e40b95823779d553cde1069bdbb7b8bbb50
@@ -31,7 +31,6 @@ class Release
31
31
  @ecs_cluster_name = nil
32
32
  @deploy_update = false
33
33
  @qainit = false
34
- # /var/ci/${DRONE_REPO}/${DRONE_BRANCH}/${DRONE_BUILD_NUMBER}:/drone/src/github.com/primait/qainit
35
34
  @qainit_host_folder = "/var/ci/#{ENV['DRONE_REPO']}/#{ENV['DRONE_BRANCH']}/#{ENV['DRONE_BUILD_NUMBER']}"
36
35
  @qainit_folder = "/drone/src/github.com/project/primait/qainit"
37
36
  @projects = {
@@ -661,9 +660,9 @@ class Release
661
660
  create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
662
661
  create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
663
662
  create_fidaty_artifact(@projects["fidaty"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-#{deploy_id}-qa.tar.gz")
664
- unless @qainit
663
+ # unless @qainit
665
664
  create_backoffice_artifact(@projects["backoffice"][:revision], deploy_id) unless artifact_exists?('prima-artifacts', "backoffice/#{@projects["backoffice"][:revision]}-#{deploy_id}.zip")
666
- end
665
+ # end
667
666
  create_peano_artifact(@projects["peano"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-#{deploy_id}-qa.tar.gz")
668
667
  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")
669
668
  create_assange_artifact(@projects["assange"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-#{deploy_id}-qa.tar.gz")
@@ -1569,8 +1568,6 @@ class Release
1569
1568
 
1570
1569
  if @qainit
1571
1570
  execute_command 'pwd && ls -l && ls config'
1572
- # [ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh urania_web \
1573
- # [ "docker run -v /var/cache/ci/primait/qainit/master/project/projects/urania/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh urania_web \
1574
1571
  [ "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
1575
1572
  '-c' 'mix local.hex --force && mix hex.info && \
1576
1573
  mix deps.get && mix compile && mix deps.compile && \
@@ -1592,7 +1589,6 @@ class Release
1592
1589
 
1593
1590
  if @qainit
1594
1591
  execute_command 'pwd && ls -l'
1595
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/urania/_build/qa/rel/urania/releases/*/urania.tar.gz").first
1596
1592
  artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
1597
1593
  else
1598
1594
  artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
@@ -1632,8 +1628,6 @@ class Release
1632
1628
 
1633
1629
  if @qainit
1634
1630
  execute_command 'pwd && ls -l && ls config'
1635
- # [ "docker run --rm -v /var/cache/ci/primait/qainit/master/project/projects/ermes/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh ermes_web \
1636
- # [ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh ermes_web \
1637
1631
  [ "docker-compose run --rm -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
1638
1632
  '-c' 'pwd && ls -la && \
1639
1633
  sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
@@ -1668,7 +1662,6 @@ class Release
1668
1662
 
1669
1663
  if @qainit
1670
1664
  execute_command 'pwd && ls -l'
1671
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/ermes/_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
1672
1665
  artifact_path = Dir.glob("_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
1673
1666
  else
1674
1667
  artifact_path = Dir.glob("_build/qa/rel/ermes/releases/*/ermes.tar.gz").first
@@ -1773,9 +1766,6 @@ class Release
1773
1766
  if @qainit
1774
1767
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
1775
1768
  exec_step 'prepare-docker-compose --directory bburago && cp docker-compose-qainit.yml docker-compose.yml'
1776
- # [
1777
- # "docker-compose build web",
1778
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/bburago/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh bburago_web \
1779
1769
  [
1780
1770
  "docker-compose build web",
1781
1771
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
@@ -1802,7 +1792,6 @@ class Release
1802
1792
  if @qainit
1803
1793
  execute_command 'pwd && ls -l'
1804
1794
  artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
1805
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/bburago/_build/qa/rel/bburago/releases/*/bburago.tar.gz").first
1806
1795
  else
1807
1796
  artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
1808
1797
  end
@@ -1823,9 +1812,6 @@ class Release
1823
1812
  if @qainit
1824
1813
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
1825
1814
  exec_step 'prepare-docker-compose --directory hal9000 && cp docker-compose-qainit.yml docker-compose.yml'
1826
- # [
1827
- # "docker-compose build web", #{@qainit_host_folder}
1828
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/hal9000/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh hal9000_web \
1829
1815
  [
1830
1816
  "docker-compose build web",
1831
1817
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
@@ -1854,7 +1840,6 @@ class Release
1854
1840
  if @qainit
1855
1841
  execute_command 'pwd && ls -l'
1856
1842
  artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
1857
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/hal9000/_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
1858
1843
  else
1859
1844
  artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
1860
1845
  end
@@ -1881,9 +1866,6 @@ class Release
1881
1866
  if @qainit
1882
1867
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
1883
1868
  exec_step 'prepare-docker-compose --directory fidaty && cp docker-compose-qainit.yml docker-compose.yml'
1884
- # [
1885
- # "docker-compose build web",
1886
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/fidaty/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh fidaty_web \
1887
1869
  [
1888
1870
  "docker-compose build web",
1889
1871
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
@@ -1916,7 +1898,6 @@ class Release
1916
1898
  if @qainit
1917
1899
  execute_command 'pwd && ls -l'
1918
1900
  artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
1919
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/fidaty/_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
1920
1901
  else
1921
1902
  artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
1922
1903
  end
@@ -1944,7 +1925,6 @@ class Release
1944
1925
  if @qainit
1945
1926
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
1946
1927
  exec_step 'prepare-docker-compose --directory peano && cp docker-compose-qainit.yml docker-compose.yml'
1947
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/peano/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh peano_web \
1948
1928
  [
1949
1929
  "docker-compose build web",
1950
1930
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
@@ -1976,7 +1956,6 @@ class Release
1976
1956
  if @qainit
1977
1957
  execute_command 'pwd && ls -l'
1978
1958
  artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
1979
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/peano/_build/qa/rel/peano/releases/*/peano.tar.gz").first
1980
1959
  else
1981
1960
  artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
1982
1961
  end
@@ -2002,7 +1981,6 @@ class Release
2002
1981
  if @qainit
2003
1982
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2004
1983
  exec_step 'prepare-docker-compose --directory rogoreport && cp docker-compose-qainit.yml docker-compose.yml'
2005
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/rogoreport/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh rogoreport_web \
2006
1984
  [
2007
1985
  "docker-compose build web",
2008
1986
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
@@ -2035,7 +2013,6 @@ class Release
2035
2013
  if @qainit
2036
2014
  execute_command 'pwd && ls -l'
2037
2015
  artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
2038
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/rogoreport*/_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
2039
2016
  else
2040
2017
  artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
2041
2018
  end
@@ -2059,7 +2036,6 @@ class Release
2059
2036
  if @qainit
2060
2037
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2061
2038
  exec_step 'prepare-docker-compose --directory assange && cp docker-compose-qainit.yml docker-compose.yml'
2062
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/assange/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
2063
2039
  [
2064
2040
  "docker-compose build web",
2065
2041
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
@@ -2090,7 +2066,6 @@ class Release
2090
2066
  if @qainit
2091
2067
  execute_command 'pwd && ls -l'
2092
2068
  artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
2093
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/assange/_build/qa/rel/assange/releases/*/assange.tar.gz").first
2094
2069
  else
2095
2070
  artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
2096
2071
  end
@@ -2117,7 +2092,6 @@ class Release
2117
2092
  if @qainit
2118
2093
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2119
2094
  exec_step 'prepare-docker-compose --directory activia && cp docker-compose-qainit.yml docker-compose.yml'
2120
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/activia/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh activia_web \
2121
2095
  [
2122
2096
  "docker-compose build web",
2123
2097
  "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
@@ -2150,7 +2124,6 @@ class Release
2150
2124
  if @qainit
2151
2125
  execute_command 'pwd && ls -l'
2152
2126
  artifact_path = Dir.glob("_build/qa/rel/activia/releases/*/activia.tar.gz").first
2153
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/activia/_build/qa/rel/activia/releases/*/activia.tar.gz").first
2154
2127
  else
2155
2128
  artifact_path = Dir.glob("_build/qa/rel/activia/releases/*/activia.tar.gz").first
2156
2129
  end
@@ -2171,7 +2144,6 @@ class Release
2171
2144
  if @qainit
2172
2145
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2173
2146
  exec_step 'prepare-docker-compose --directory bolla && cp docker-compose-qainit.yml docker-compose.yml'
2174
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/bolla/:/code -w /code -u root -e MIX_ENV=qa --entrypoint /bin/sh bolla_web \
2175
2147
  [
2176
2148
  "pwd && cat docker-compose.yml",
2177
2149
  "docker-compose build web",
@@ -2199,7 +2171,6 @@ class Release
2199
2171
  if @qainit
2200
2172
  execute_command 'pwd && ls -l'
2201
2173
  artifact_path = Dir.glob("_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
2202
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/bolla/_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
2203
2174
  else
2204
2175
  artifact_path = Dir.glob("_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
2205
2176
  end
@@ -2236,7 +2207,6 @@ class Release
2236
2207
  if @qainit
2237
2208
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2238
2209
  exec_step 'prepare-docker-compose --directory borat && cp docker-compose-qainit.yml docker-compose.yml'
2239
- # "docker run -v /var/cache/ci/primait/qainit/master/project/projects/borat/:/code -w /code -u root -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_backend \
2240
2210
  [
2241
2211
  "pwd && cat docker-compose.yml",
2242
2212
  "docker-compose build backend",
@@ -2288,7 +2258,6 @@ class Release
2288
2258
  if @qainit
2289
2259
  execute_command 'pwd && ls -l'
2290
2260
  artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
2291
- # artifact_path = Dir.glob("/var/cache/ci/project/projects/borat/_build/qa/rel/backend/releases/*/backend.tar.gz").first
2292
2261
  else
2293
2262
  artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
2294
2263
  end
@@ -2317,13 +2286,14 @@ class Release
2317
2286
  webri_qa_host = web_qa_host.sub("www", "wwwri")
2318
2287
 
2319
2288
  if @qainit
2320
- exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2289
+ # exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2321
2290
  exec_step 'prepare-docker-compose --directory backoffice && cp docker-compose-qainit.yml docker-compose.yml'
2322
2291
  [
2323
2292
  "docker-compose build workers",
2293
+ "docker-compose build bower",
2324
2294
  "rm -rf src/ && git checkout -- .",
2325
- "cd ../../ && docker run -e GIT_DIR=$PWD -v #{@qainit_host_folder}:/usr/app/src -w /usr/app/src/projects/backoffice blinkmobile/bower install --allow-root",
2326
- "docker run -v #{@qainit_host_folder}/projects/backoffice/:/code -w /code -u root -e PHANTOMJS_BIN=/code/node_modules/grunt-selenium-webdriver/node_modules/phantomjs/bin/phantomjs --entrypoint /bin/bash backoffice_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'"
2295
+ "docker-compose run -e GIT_DIR=$PWD -v $PWD:/usr/app/src -w /usr/app/src/ bower install --allow-root",
2296
+ "docker-compose run -v $PWD:/code -w /code -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'"
2327
2297
  ].each do |cmd|
2328
2298
  execute_command cmd
2329
2299
  end
@@ -2357,10 +2327,6 @@ class Release
2357
2327
  def create_prima_artifact(revision, branch_name, deploy_id)
2358
2328
  output "Preparo l'artifact prima .zip\n".yellow
2359
2329
 
2360
- # if @qainit
2361
- # exec_step 'cd /drone/src/github.com/primait/qainit'
2362
- # end
2363
-
2364
2330
  git_checkout_version('prima', revision)
2365
2331
 
2366
2332
  Dir.chdir 'projects/prima'
@@ -2378,13 +2344,9 @@ class Release
2378
2344
  assange_qa_host = get_route53_hostname("ecs-task-assange-qa-notneeded")
2379
2345
 
2380
2346
  if @qainit
2381
- # exec_step 'cd /drone/src/github.com/primait/qainit/projects/prima'
2382
2347
  exec_step 'mv docker-compose-ci.yml docker-compose.yml'
2383
- # exec_step 'prepare-docker-compose --directory prima'
2384
2348
  exec_step 'prepare-docker-compose --directory prima'
2385
2349
  exec_step 'sed -i "s/\\/home\\/app/\\/root/g" docker-compose.yml'
2386
- # exec_step 'cp docker-compose-qainit.yml docker-compose.yml'
2387
- # exec_step 'rm -f docker-compose-ci.yml'
2388
2350
  end
2389
2351
  [
2390
2352
  "bin/local_build_artifact.sh #{branch_name} #{web_qa_host} #{backoffice_qa_host} #{assange_qa_host} #{deploy_id} #{'update' if @deploy_update}"
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.54
4
+ version: 0.36.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino