prima-twig 0.36.28 → 0.36.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-feature +414 -172
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2750bf29e6ee65d2e3db618355f153bf72c4a17e
|
4
|
+
data.tar.gz: d1ef520fb220efb5bb70d120a93e8af9049c8fb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5e92f79517599600ce2eea6dec587bace52b609844b980432163caf4f8ea9a005e046afc14cd9811d66ac22fa2d60a95be768a2ad629238f88f390bf7346315
|
7
|
+
data.tar.gz: 0771e7abe504e72d24f787b8da11a4b20a3c1cc761ba0f07126a72d8deb3e43e223eaa08c1ca95834296ea2142c6996de781f363f1b49c59cb2df1065ef6482c
|
data/bin/twig-feature
CHANGED
@@ -1547,11 +1547,24 @@ class Release
|
|
1547
1547
|
decrypt_secrets()
|
1548
1548
|
|
1549
1549
|
if @qainit
|
1550
|
-
exec_step '
|
1550
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
1551
|
+
exec_step 'prepare-docker-compose --directory urania && cp docker-compose-qainit.yml docker-compose.yml'
|
1551
1552
|
end
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1553
|
+
|
1554
|
+
execute_command "docker-compose build web",
|
1555
|
+
|
1556
|
+
if @qainit
|
1557
|
+
execute_command 'pwd && ls -l && ls config'
|
1558
|
+
[ "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 \
|
1559
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
1560
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1561
|
+
rm -rf _build/qa/rel/ && \
|
1562
|
+
mix release --env=qa'"
|
1563
|
+
].each do |cmd|
|
1564
|
+
execute_command cmd
|
1565
|
+
end
|
1566
|
+
else
|
1567
|
+
[ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh urania_web \
|
1555
1568
|
'-c' 'mix local.hex --force && mix hex.info && \
|
1556
1569
|
mix deps.get && mix compile && mix deps.compile && \
|
1557
1570
|
rm -rf _build/qa/rel/ && \
|
@@ -1560,7 +1573,12 @@ class Release
|
|
1560
1573
|
execute_command cmd
|
1561
1574
|
end
|
1562
1575
|
|
1563
|
-
|
1576
|
+
if @qainit
|
1577
|
+
execute_command 'pwd && ls -l'
|
1578
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/urania/_build/qa/rel/urania/releases/*/urania.tar.gz").first
|
1579
|
+
else
|
1580
|
+
artifact_path = Dir.glob("_build/qa/rel/urania/releases/*/urania.tar.gz").first
|
1581
|
+
end
|
1564
1582
|
upload_artifact(artifact_path, "microservices/urania/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1565
1583
|
|
1566
1584
|
Dir.chdir '../../'
|
@@ -1661,32 +1679,60 @@ class Release
|
|
1661
1679
|
decrypt_secrets()
|
1662
1680
|
|
1663
1681
|
if @qainit
|
1664
|
-
exec_step '
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1682
|
+
# exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
1683
|
+
exec_step 'prepare-docker-compose --directory crash && cp docker-compose-qainit.yml docker-compose.yml'
|
1684
|
+
[
|
1685
|
+
'docker-compose build web',
|
1686
|
+
"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 \
|
1687
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
1688
|
+
sed -i \"s/crash-qa-host/#{crash_qa_host}/g\" config/qa.exs && \
|
1689
|
+
mix local.hex --force && mix hex.info && \
|
1690
|
+
mix deps.get && \
|
1691
|
+
cd assets && \
|
1692
|
+
yarn --cache-folder ~/.cache/yarn && \
|
1693
|
+
./node_modules/.bin/elm-github-install && \
|
1694
|
+
NODE_ENV=production sysconfcpus -n 2 ./node_modules/.bin/webpack -p --config config/webpack.config.prod.js && \
|
1695
|
+
cd ../ && \
|
1696
|
+
mix release.clean --implode --no-confirm && \
|
1697
|
+
mix phx.digest && \
|
1698
|
+
mix deps.clean --all && \
|
1699
|
+
mix deps.get && \
|
1700
|
+
mix compile && mix release --env=qa'",
|
1701
|
+
'docker-compose down'
|
1702
|
+
].each do |cmd|
|
1703
|
+
execute_command cmd
|
1704
|
+
end
|
1705
|
+
else
|
1706
|
+
[
|
1707
|
+
'mv docker-compose-ci.yml docker-compose.yml',
|
1708
|
+
'docker-compose build web',
|
1709
|
+
"docker-compose run -w $PWD -e WS_ENDPOINT=#{ws_endpoint} -e GRAPHQL_ENDPOINT=#{frontend_endpoint} -e MIX_ENV=qa web \
|
1710
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
1711
|
+
sed -i \"s/crash-qa-host/#{crash_qa_host}/g\" config/qa.exs && \
|
1712
|
+
mix local.hex --force && mix hex.info && \
|
1713
|
+
mix deps.get && \
|
1714
|
+
cd assets && \
|
1715
|
+
yarn --cache-folder ~/.cache/yarn && \
|
1716
|
+
./node_modules/.bin/elm-github-install && \
|
1717
|
+
NODE_ENV=production sysconfcpus -n 2 ./node_modules/.bin/webpack -p --config config/webpack.config.prod.js && \
|
1718
|
+
cd ../ && \
|
1719
|
+
mix release.clean --implode --no-confirm && \
|
1720
|
+
mix phx.digest && \
|
1721
|
+
mix deps.clean --all && \
|
1722
|
+
mix deps.get && \
|
1723
|
+
mix compile && mix release --env=qa'",
|
1724
|
+
'docker-compose down'
|
1725
|
+
].each do |cmd|
|
1726
|
+
execute_command cmd
|
1727
|
+
end
|
1687
1728
|
end
|
1688
1729
|
|
1689
|
-
|
1730
|
+
if @qainit
|
1731
|
+
execute_command 'pwd && ls -l'
|
1732
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/crash/_build/qa/rel/crash/releases/*/crash.tar.gz").first
|
1733
|
+
else
|
1734
|
+
artifact_path = Dir.glob('_build/qa/rel/crash/releases/*/crash.tar.gz').first
|
1735
|
+
end
|
1690
1736
|
upload_artifact(artifact_path, "microservices/crash/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1691
1737
|
|
1692
1738
|
Dir.chdir '../../'
|
@@ -1702,20 +1748,37 @@ class Release
|
|
1702
1748
|
decrypt_secrets()
|
1703
1749
|
|
1704
1750
|
if @qainit
|
1705
|
-
exec_step '
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1751
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
1752
|
+
exec_step 'prepare-docker-compose --directory bburago && cp docker-compose-qainit.yml docker-compose.yml'
|
1753
|
+
[
|
1754
|
+
"docker-compose build web",
|
1755
|
+
"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 \
|
1756
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
1757
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1758
|
+
rm -rf _build/qa/rel/ && \
|
1759
|
+
mix release --env=qa'"
|
1760
|
+
].each do |cmd|
|
1761
|
+
execute_command cmd
|
1762
|
+
end
|
1763
|
+
else
|
1764
|
+
[
|
1765
|
+
"docker-compose build web",
|
1766
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh bburago_web \
|
1767
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
1768
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1769
|
+
rm -rf _build/qa/rel/ && \
|
1770
|
+
mix release --env=qa'"
|
1771
|
+
].each do |cmd|
|
1772
|
+
execute_command cmd
|
1773
|
+
end
|
1716
1774
|
end
|
1717
1775
|
|
1718
|
-
|
1776
|
+
if @qainit
|
1777
|
+
execute_command 'pwd && ls -l'
|
1778
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/bburago/_build/qa/rel/bburago/releases/*/bburago.tar.gz").first
|
1779
|
+
else
|
1780
|
+
artifact_path = Dir.glob('_build/qa/rel/bburago/releases/*/bburago.tar.gz').first
|
1781
|
+
end
|
1719
1782
|
upload_artifact(artifact_path, "microservices/bburago/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1720
1783
|
|
1721
1784
|
Dir.chdir '../../'
|
@@ -1731,21 +1794,39 @@ class Release
|
|
1731
1794
|
decrypt_secrets()
|
1732
1795
|
|
1733
1796
|
if @qainit
|
1734
|
-
exec_step '
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1797
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
1798
|
+
exec_step 'prepare-docker-compose --directory hal9000 && cp docker-compose-qainit.yml docker-compose.yml'
|
1799
|
+
[
|
1800
|
+
"docker-compose build web",
|
1801
|
+
"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 \
|
1802
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
1803
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1804
|
+
mix phx.digest && \
|
1805
|
+
rm -rf _build/qa/rel/ && \
|
1806
|
+
mix release --env=qa'"
|
1807
|
+
].each do |cmd|
|
1808
|
+
execute_command cmd
|
1809
|
+
end
|
1810
|
+
else
|
1811
|
+
[
|
1812
|
+
"docker-compose build web",
|
1813
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh hal9000_web \
|
1814
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
1815
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1816
|
+
mix phx.digest && \
|
1817
|
+
rm -rf _build/qa/rel/ && \
|
1818
|
+
mix release --env=qa'"
|
1819
|
+
].each do |cmd|
|
1820
|
+
execute_command cmd
|
1821
|
+
end
|
1746
1822
|
end
|
1747
1823
|
|
1748
|
-
|
1824
|
+
if @qainit
|
1825
|
+
execute_command 'pwd && ls -l'
|
1826
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/hal9000/_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
|
1827
|
+
else
|
1828
|
+
artifact_path = Dir.glob("_build/qa/rel/hal9000/releases/*/hal9000.tar.gz").first
|
1829
|
+
end
|
1749
1830
|
upload_artifact(artifact_path, "microservices/hal9000/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1750
1831
|
|
1751
1832
|
Dir.chdir '../../'
|
@@ -1767,23 +1848,43 @@ class Release
|
|
1767
1848
|
decrypt_secrets()
|
1768
1849
|
|
1769
1850
|
if @qainit
|
1770
|
-
exec_step '
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1851
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
1852
|
+
exec_step 'prepare-docker-compose --directory fidaty && cp docker-compose-qainit.yml docker-compose.yml'
|
1853
|
+
[
|
1854
|
+
"docker-compose build web",
|
1855
|
+
"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 \
|
1856
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
1857
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
1858
|
+
mix local.hex --force && mix hex.info && \
|
1859
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1860
|
+
mix phx.digest && \
|
1861
|
+
rm -rf _build/qa/rel/ && \
|
1862
|
+
mix release --env=qa'"
|
1863
|
+
].each do |cmd|
|
1864
|
+
execute_command cmd
|
1865
|
+
end
|
1866
|
+
else
|
1867
|
+
[
|
1868
|
+
"docker-compose build web",
|
1869
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh fidaty_web \
|
1870
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
1871
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
1872
|
+
mix local.hex --force && mix hex.info && \
|
1873
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1874
|
+
mix phx.digest && \
|
1875
|
+
rm -rf _build/qa/rel/ && \
|
1876
|
+
mix release --env=qa'"
|
1877
|
+
].each do |cmd|
|
1878
|
+
execute_command cmd
|
1879
|
+
end
|
1784
1880
|
end
|
1785
1881
|
|
1786
|
-
|
1882
|
+
if @qainit
|
1883
|
+
execute_command 'pwd && ls -l'
|
1884
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/fidaty/_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
|
1885
|
+
else
|
1886
|
+
artifact_path = Dir.glob("_build/qa/rel/fidaty/releases/*/fidaty.tar.gz").first
|
1887
|
+
end
|
1787
1888
|
upload_artifact(artifact_path, "microservices/fidaty/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1788
1889
|
|
1789
1890
|
Dir.chdir '../../'
|
@@ -1806,22 +1907,41 @@ class Release
|
|
1806
1907
|
decrypt_secrets()
|
1807
1908
|
|
1808
1909
|
if @qainit
|
1809
|
-
exec_step '
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1910
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
1911
|
+
exec_step 'prepare-docker-compose --directory peano && cp docker-compose-qainit.yml docker-compose.yml'
|
1912
|
+
[
|
1913
|
+
"docker-compose build web",
|
1914
|
+
"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 \
|
1915
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
1916
|
+
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
1917
|
+
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
1918
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1919
|
+
rm -rf _build/qa/rel/ && \
|
1920
|
+
mix release --env=qa'"
|
1921
|
+
].each do |cmd|
|
1922
|
+
execute_command cmd
|
1923
|
+
end
|
1924
|
+
else
|
1925
|
+
[
|
1926
|
+
"docker-compose build web",
|
1927
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh peano_web \
|
1928
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
1929
|
+
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
1930
|
+
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
1931
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1932
|
+
rm -rf _build/qa/rel/ && \
|
1933
|
+
mix release --env=qa'"
|
1934
|
+
].each do |cmd|
|
1935
|
+
execute_command cmd
|
1936
|
+
end
|
1822
1937
|
end
|
1823
1938
|
|
1824
|
-
|
1939
|
+
if @qainit
|
1940
|
+
execute_command 'pwd && ls -l'
|
1941
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/peano/_build/qa/rel/peano/releases/*/peano.tar.gz").first
|
1942
|
+
else
|
1943
|
+
artifact_path = Dir.glob("_build/qa/rel/peano/releases/*/peano.tar.gz").first
|
1944
|
+
end
|
1825
1945
|
upload_artifact(artifact_path, "microservices/peano/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1826
1946
|
|
1827
1947
|
Dir.chdir '../../'
|
@@ -1842,23 +1962,43 @@ class Release
|
|
1842
1962
|
decrypt_secrets()
|
1843
1963
|
|
1844
1964
|
if @qainit
|
1845
|
-
exec_step '
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1965
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
1966
|
+
exec_step 'prepare-docker-compose --directory rogoreport && cp docker-compose-qainit.yml docker-compose.yml'
|
1967
|
+
[
|
1968
|
+
"docker-compose build web",
|
1969
|
+
"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 \
|
1970
|
+
'-c' 'sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" apps/escile/config/qa.exs && \
|
1971
|
+
sed -i \"s/web-qa-host/#{web_qa_host}/g\" apps/escile/config/qa.exs && \
|
1972
|
+
cat apps/escile/config/qa.exs && \
|
1973
|
+
mix local.hex --force && mix hex.info && \
|
1974
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1975
|
+
rm -rf _build/qa/rel/ && \
|
1976
|
+
mix release --name=rogoreport_qa --env=qa'"
|
1977
|
+
].each do |cmd|
|
1978
|
+
execute_command cmd
|
1979
|
+
end
|
1980
|
+
else
|
1981
|
+
[
|
1982
|
+
"docker-compose build web",
|
1983
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh rogoreport_web \
|
1984
|
+
'-c' 'sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" apps/escile/config/qa.exs && \
|
1985
|
+
sed -i \"s/web-qa-host/#{web_qa_host}/g\" apps/escile/config/qa.exs && \
|
1986
|
+
cat apps/escile/config/qa.exs && \
|
1987
|
+
mix local.hex --force && mix hex.info && \
|
1988
|
+
mix deps.get && mix compile && mix deps.compile && \
|
1989
|
+
rm -rf _build/qa/rel/ && \
|
1990
|
+
mix release --name=rogoreport_qa --env=qa'"
|
1991
|
+
].each do |cmd|
|
1992
|
+
execute_command cmd
|
1993
|
+
end
|
1859
1994
|
end
|
1860
1995
|
|
1861
|
-
|
1996
|
+
if @qainit
|
1997
|
+
execute_command 'pwd && ls -l'
|
1998
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/rogoreport*/_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
|
1999
|
+
else
|
2000
|
+
artifact_path = Dir.glob("_build/qa/rel/rogoreport*/releases/*/rogoreport*.tar.gz").first
|
2001
|
+
end
|
1862
2002
|
upload_artifact(artifact_path, "microservices/rogoreport/rogoreport_qa-#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1863
2003
|
|
1864
2004
|
Dir.chdir '../../'
|
@@ -1877,22 +2017,41 @@ class Release
|
|
1877
2017
|
decrypt_secrets()
|
1878
2018
|
|
1879
2019
|
if @qainit
|
1880
|
-
exec_step '
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
2020
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
2021
|
+
exec_step 'prepare-docker-compose --directory assange && cp docker-compose-qainit.yml docker-compose.yml'
|
2022
|
+
[
|
2023
|
+
"docker-compose build web",
|
2024
|
+
"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 \
|
2025
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
2026
|
+
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2027
|
+
mix deps.get && mix compile && mix deps.compile && \
|
2028
|
+
mix phx.digest && \
|
2029
|
+
rm -rf _build/qa/rel/ && \
|
2030
|
+
mix release --env=qa'"
|
2031
|
+
].each do |cmd|
|
2032
|
+
execute_command cmd
|
2033
|
+
end
|
2034
|
+
else
|
2035
|
+
[
|
2036
|
+
"docker-compose build web",
|
2037
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
|
2038
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
2039
|
+
sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2040
|
+
mix deps.get && mix compile && mix deps.compile && \
|
2041
|
+
mix phx.digest && \
|
2042
|
+
rm -rf _build/qa/rel/ && \
|
2043
|
+
mix release --env=qa'"
|
2044
|
+
].each do |cmd|
|
2045
|
+
execute_command cmd
|
2046
|
+
end
|
1893
2047
|
end
|
1894
2048
|
|
1895
|
-
|
2049
|
+
if @qainit
|
2050
|
+
execute_command 'pwd && ls -l'
|
2051
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/assange/_build/qa/rel/assange/releases/*/assange.tar.gz").first
|
2052
|
+
else
|
2053
|
+
artifact_path = Dir.glob("_build/qa/rel/assange/releases/*/assange.tar.gz").first
|
2054
|
+
end
|
1896
2055
|
upload_artifact(artifact_path, "microservices/assange/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1897
2056
|
|
1898
2057
|
Dir.chdir '../../'
|
@@ -1914,23 +2073,43 @@ class Release
|
|
1914
2073
|
decrypt_secrets()
|
1915
2074
|
|
1916
2075
|
if @qainit
|
1917
|
-
exec_step '
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
2076
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
2077
|
+
exec_step 'prepare-docker-compose --directory activia && cp docker-compose-qainit.yml docker-compose.yml'
|
2078
|
+
[
|
2079
|
+
"docker-compose build web",
|
2080
|
+
"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 \
|
2081
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2082
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
2083
|
+
mix local.hex --force && mix hex.info && \
|
2084
|
+
mix deps.get && mix compile && mix deps.compile && \
|
2085
|
+
mix phx.digest && \
|
2086
|
+
rm -rf _build/qa/rel/ && \
|
2087
|
+
mix release --env=qa'"
|
2088
|
+
].each do |cmd|
|
2089
|
+
execute_command cmd
|
2090
|
+
end
|
2091
|
+
else
|
2092
|
+
[
|
2093
|
+
"docker-compose build web",
|
2094
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh activia_web \
|
2095
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2096
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
2097
|
+
mix local.hex --force && mix hex.info && \
|
2098
|
+
mix deps.get && mix compile && mix deps.compile && \
|
2099
|
+
mix phx.digest && \
|
2100
|
+
rm -rf _build/qa/rel/ && \
|
2101
|
+
mix release --env=qa'"
|
2102
|
+
].each do |cmd|
|
2103
|
+
execute_command cmd
|
2104
|
+
end
|
1931
2105
|
end
|
1932
2106
|
|
1933
|
-
|
2107
|
+
if @qainit
|
2108
|
+
execute_command 'pwd && ls -l'
|
2109
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/activia/_build/qa/rel/activia/releases/*/activia.tar.gz").first
|
2110
|
+
else
|
2111
|
+
artifact_path = Dir.glob("_build/qa/rel/activia/releases/*/activia.tar.gz").first
|
2112
|
+
end
|
1934
2113
|
upload_artifact(artifact_path, "microservices/activia/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
1935
2114
|
|
1936
2115
|
Dir.chdir '../../'
|
@@ -1946,20 +2125,38 @@ class Release
|
|
1946
2125
|
decrypt_secrets()
|
1947
2126
|
|
1948
2127
|
if @qainit
|
1949
|
-
exec_step '
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
2128
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
2129
|
+
exec_step 'prepare-docker-compose --directory bolla && cp docker-compose-qainit.yml docker-compose.yml'
|
2130
|
+
[
|
2131
|
+
"pwd && cat docker-compose.yml",
|
2132
|
+
"docker-compose build web",
|
2133
|
+
"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 \
|
2134
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
2135
|
+
mix deps.get && mix compile && mix deps.compile && \
|
2136
|
+
rm -rf _build/qa/rel/ && \
|
2137
|
+
mix release --env=qa'"
|
2138
|
+
].each do |cmd|
|
2139
|
+
execute_command cmd
|
2140
|
+
end
|
2141
|
+
else
|
2142
|
+
[
|
2143
|
+
"docker-compose build web",
|
2144
|
+
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh assange_web \
|
2145
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
2146
|
+
mix deps.get && mix compile && mix deps.compile && \
|
2147
|
+
rm -rf _build/qa/rel/ && \
|
2148
|
+
mix release --env=qa'"
|
2149
|
+
].each do |cmd|
|
2150
|
+
execute_command cmd
|
2151
|
+
end
|
1960
2152
|
end
|
1961
2153
|
|
1962
|
-
|
2154
|
+
if @qainit
|
2155
|
+
execute_command 'pwd && ls -l'
|
2156
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/bolla/_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
|
2157
|
+
else
|
2158
|
+
artifact_path = Dir.glob("_build/qa/rel/migrator/releases/*/migrator.tar.gz").first
|
2159
|
+
end
|
1963
2160
|
upload_artifact(artifact_path, "microservices/bolla/#{revision}-#{deploy_id}-qa-migrator.tar.gz", "#{@s3_bucket}-encrypted")
|
1964
2161
|
|
1965
2162
|
Dir.chdir '../../'
|
@@ -1991,32 +2188,62 @@ class Release
|
|
1991
2188
|
decrypt_secrets()
|
1992
2189
|
|
1993
2190
|
if @qainit
|
1994
|
-
exec_step '
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2016
|
-
|
2191
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
2192
|
+
exec_step 'prepare-docker-compose --directory borat && cp docker-compose-qainit.yml docker-compose.yml'
|
2193
|
+
[
|
2194
|
+
"pwd && cat docker-compose.yml",
|
2195
|
+
"docker-compose build backend",
|
2196
|
+
"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 \
|
2197
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2198
|
+
sed -i \"s/backoffice-legacy-qa-host/#{backoffice_qa_host}/g\" config/qa.exs && \
|
2199
|
+
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
2200
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
2201
|
+
sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
|
2202
|
+
mix local.hex --force && mix hex.info && \
|
2203
|
+
mix deps.get && \
|
2204
|
+
cd assets && \
|
2205
|
+
yarn --cache-folder ~/.cache/yarn && \
|
2206
|
+
./node_modules/.bin/elm-github-install && \
|
2207
|
+
sysconfcpus -n 2 ./node_modules/.bin/webpack -p --config config/webpack.config.prod.js && \
|
2208
|
+
cd ../ && \
|
2209
|
+
mix phx.digest && \
|
2210
|
+
mix compile && mix deps.compile && \
|
2211
|
+
rm -rf _build/qa/rel/ && \
|
2212
|
+
mix release --env=qa'"
|
2213
|
+
].each do |cmd|
|
2214
|
+
execute_command cmd
|
2215
|
+
end
|
2216
|
+
else
|
2217
|
+
[
|
2218
|
+
"docker-compose build backend",
|
2219
|
+
"docker run -v $PWD:/code -w /code -e WS_ENDPOINT=#{ws_endpoint} -e FRONTEND=#{frontend_endpoint} -e MIX_ENV=qa --entrypoint /bin/sh borat_backend \
|
2220
|
+
'-c' 'sed -i \"s/web-qa-host/#{web_qa_host}/g\" config/qa.exs && \
|
2221
|
+
sed -i \"s/backoffice-legacy-qa-host/#{backoffice_qa_host}/g\" config/qa.exs && \
|
2222
|
+
sed -i \"s/assange-qa-host/#{assange_qa_host}/g\" config/qa.exs && \
|
2223
|
+
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
2224
|
+
sed -i \"s/borat-qa-host/#{borat_qa_host}/g\" config/qa.exs && \
|
2225
|
+
mix local.hex --force && mix hex.info && \
|
2226
|
+
mix deps.get && \
|
2227
|
+
cd assets && \
|
2228
|
+
yarn --cache-folder ~/.cache/yarn && \
|
2229
|
+
./node_modules/.bin/elm-github-install && \
|
2230
|
+
sysconfcpus -n 2 ./node_modules/.bin/webpack -p --config config/webpack.config.prod.js && \
|
2231
|
+
cd ../ && \
|
2232
|
+
mix phx.digest && \
|
2233
|
+
mix compile && mix deps.compile && \
|
2234
|
+
rm -rf _build/qa/rel/ && \
|
2235
|
+
mix release --env=qa'"
|
2236
|
+
].each do |cmd|
|
2237
|
+
execute_command cmd
|
2238
|
+
end
|
2017
2239
|
end
|
2018
2240
|
|
2019
|
-
|
2241
|
+
if @qainit
|
2242
|
+
execute_command 'pwd && ls -l'
|
2243
|
+
artifact_path = Dir.glob("/var/cache/ci/project/projects/borat/_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
2244
|
+
else
|
2245
|
+
artifact_path = Dir.glob("_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
2246
|
+
end
|
2020
2247
|
upload_artifact(artifact_path, "microservices/borat/#{revision}-#{deploy_id}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
2021
2248
|
|
2022
2249
|
Dir.chdir '../../'
|
@@ -2042,17 +2269,32 @@ class Release
|
|
2042
2269
|
webri_qa_host = web_qa_host.sub("www", "wwwri")
|
2043
2270
|
|
2044
2271
|
if @qainit
|
2045
|
-
exec_step '
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2272
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
2273
|
+
exec_step 'prepare-docker-compose --directory backoffice && cp docker-compose-qainit.yml docker-compose.yml'
|
2274
|
+
[
|
2275
|
+
"docker-compose build workers",
|
2276
|
+
"rm -rf src/ && git checkout -- .",
|
2277
|
+
"cd ../../ && docker run -e GIT_DIR=/var/cache/ci/primait/qainit/master/project -v /var/cache/ci/primait/qainit/master/project:/usr/app/src -w /usr/app/src/projects/backoffice blinkmobile/bower install --allow-root",
|
2278
|
+
"docker run /var/cache/ci/primait/qainit/master/project/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'"
|
2279
|
+
].each do |cmd|
|
2280
|
+
execute_command cmd
|
2281
|
+
end
|
2282
|
+
else
|
2283
|
+
[
|
2284
|
+
"docker-compose build workers",
|
2285
|
+
"rm -rf src/ && git checkout -- .",
|
2286
|
+
"cd ../../ && docker run -e GIT_DIR=$PWD -v $PWD:/usr/app/src -w /usr/app/src/projects/backoffice blinkmobile/bower install --allow-root",
|
2287
|
+
"docker run -v $PWD:/code -w /code -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'"
|
2288
|
+
].each do |cmd|
|
2289
|
+
execute_command cmd
|
2290
|
+
end
|
2054
2291
|
end
|
2055
2292
|
|
2293
|
+
if @qainit
|
2294
|
+
# artifact_path = Dir.glob("/var/cache/ci/project/projects/borat/_build/qa/rel/backend/releases/*/backend.tar.gz").first
|
2295
|
+
execute_command 'cd /var/cache/ci/project/projects/backoffice'
|
2296
|
+
execute_command 'pwd && ls -l'
|
2297
|
+
end
|
2056
2298
|
artifact_path = '/tmp/backoffice.zip'
|
2057
2299
|
exec_step "rm -f #{artifact_path} && zip -9 -r #{artifact_path} bin/"
|
2058
2300
|
upload_artifact(artifact_path, "backoffice/#{revision}-#{deploy_id}.zip")
|