Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Chrome Test #92 #154

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
28 changes: 23 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,18 +301,26 @@ task:
CI_CHANNEL: "Stable"

task:
name: "Chromium $CI_DISTRO"
name: "$CI_PACKAGE_NAME $CI_DISTRO"
matrix:
- container:
image: fedora:latest
cpu: 1
memory: 1G
package_install_script:
- dnf install -y chromium
- dnf install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
env:
CI_DISTRO: fedora
CI_MAIN_MODULE: /usr/lib64/pkcs11/p11-kit-trust.so
CI_BAK_MODULE: /usr/lib64/pkcs11/p11-kit-trust.orig.so
matrix:
- env:
CI_PACKAGE_NAME: "chromium-browser"
CI_MAIN_MODULE: /usr/lib64/pkcs11/p11-kit-trust.so
CI_BAK_MODULE: /usr/lib64/pkcs11/p11-kit-trust.orig.so
- env:
CI_PACKAGE_NAME: "google-chrome"
CI_MAIN_MODULE: /usr/lib64/pkcs11/p11-kit-trust.so
CI_BAK_MODULE: /usr/lib64/pkcs11/p11-kit-trust.orig.so
- container:
image: debian:latest
cpu: 1
Expand All @@ -321,10 +329,20 @@ task:
- apt-get update
- apt-get install -y curl chromium
- ln -s -T /usr/bin/chromium /usr/bin/chromium-browser
- apt-get install -y curl wget gnupg2
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- apt install -y ./google-chrome-stable_current_amd64.deb
env:
CI_DISTRO: debian
CI_MAIN_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so
CI_BAK_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.orig.so
matrix:
- env:
CI_PACKAGE_NAME: "chromium-browser"
CI_MAIN_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so
CI_BAK_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.orig.so
- env:
CI_PACKAGE_NAME: "google-chrome"
CI_MAIN_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.so
CI_BAK_MODULE: /usr/lib/x86_64-linux-gnu/nss/libnssckbi.orig.so
install_script:
- curl -o pkcs11mod.tar.gz https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Compile%20Go%20latest%20linux%20amd64/binaries/dist/pkcs11mod.tar.gz
- tar -xaf ./pkcs11mod.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion testdata/try-chromium-connect.bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rm -f screenshot.png
# Disable sandbox because Chromium doesn't support running the sandbox as root,
# and the Cirrus container runs as root. See
# https://github.com/Zenika/alpine-chrome .
chromium-browser --no-sandbox --headless --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage --screenshot=./screenshot.png "https://$SERVER_HOST" 2>&1 | tee log.txt
"$CI_PACKAGE_NAME" --no-sandbox --headless --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage --screenshot=./screenshot.png "https://$SERVER_HOST" 2>&1 | tee log.txt
TEXTOUT=$(cat log.txt)

if echo "$TEXTOUT" | grep -q "SSL error"
Expand Down