Skip to content

Commit

Permalink
fix: test execution on Gitlab needs chrome to be installed -- ref #1065
Browse files Browse the repository at this point in the history
  • Loading branch information
StegSchreck committed Feb 3, 2024
1 parent c45c198 commit a921ce0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cache:
- node_modules/

before_script:
- apt-get update && apt-get install -y unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm-dev
- apt-get update && apt-get install -y unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm-dev google-chrome-stable
- npm install -g @angular/cli
- npm ci --legacy-peer-deps

Expand All @@ -22,7 +22,7 @@ lint:
test:
stage: test
script:
- ng test --watch false --browsers ChromeHeadless
- ng test --watch false --browsers ChromeHeadless --code-coverage

build:
stage: build
Expand Down
6 changes: 6 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,11 @@ module.exports = function (config) {
browsers: ['Chrome'],
restartOnFileChange: true,
singleRun: false,
customLaunchers: {
Chrome_no_sandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
});
};

0 comments on commit a921ce0

Please sign in to comment.