Switch to chrome-headless-shell in ci script
Change-Id: Ibd1030f7cbbeb6ca8052be35b0411f8f2bcadb78
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 657f16c..f22ff65 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,11 +26,11 @@
- start_section install_linux_packages "Installing missing Linux packages"
- apt-get update
- - apt-get install -y curl libvulkan1 libu2f-udev fonts-liberation build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick inkscape scour poppler-utils fonts-stix
- - curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- - dpkg -i google-chrome-stable_current_amd64.deb || apt-get install -y -f
-# - curl -O http://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb
-# - dpkg -i google-chrome-stable_${CHROME_VERSION}_amd64.deb || apt-get install -y -f
+ - apt-get install -y libasound2t64 npm curl libvulkan1 libu2f-udev fonts-liberation build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick inkscape scour poppler-utils fonts-stix
+ - npx @puppeteer/browsers install chrome-headless-shell@stable
+ - export CHROME=$(find ~+ -name chrome-headless-shell -type f)
+ - echo "CHROME=$CHROME"
+ - ln -s $CHROME /usr/bin/google-chrome
- locale-gen de_DE.utf8 en_GB.utf8 en_US.utf8
- end_section install_linux_packages