Merge pull request #5309 from luisramos0/better-karma

Make dockerfile install node and adapt karma browser config to work inside a docker container
This commit is contained in:
Pau Pérez Fabregat
2020-05-06 11:11:00 +02:00
committed by GitHub
2 changed files with 18 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ RUN sh -c "echo 'deb https://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main'
apt-get update && \
apt-get install -yqq --no-install-recommends postgresql-client-9.5 libpq-dev
# Install node
RUN apt-get install -y nodejs
# Install Chrome
RUN wget --quiet -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c "echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google-chrome.list" && \

View File

@@ -41,8 +41,21 @@ module.exports = function(config) {
},
autoWatch: true,
browsers: ['ChromeHeadless'],
browsers: ['CustomHeadlessChrome'],
customLaunchers: {
CustomHeadlessChrome: {
base: 'ChromeHeadless',
flags: [
'--no-sandbox',
'--remote-debugging-port=9222',
'--enable-logging',
'--disable-background-timer-throttling',
'--disable-renderer-backgrounding',
'--proxy-bypass-list=*',
'--proxy-server=\'direct://\''
]
}
},
junitReporter: {
outputFile: 'log/testacular-unit.xml',