changeset 51323c1749ed in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=51323c1749ed
description:
Update grunt configuration to make puppeteer works on drone
The default node image does not contain the required libraries to run
chromium
headless. So we use our own custom image.
Also chromium must be run without sandbox when it is run as root as it
does in
docker image.
issue8316
diffstat:
.drone.yml | 2 +-
Gruntfile.js | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r aef6d6500deb -r 51323c1749ed .drone.yml
--- a/.drone.yml Fri May 03 09:10:04 2019 +0200
+++ b/.drone.yml Fri May 03 11:01:36 2019 +0200
@@ -4,7 +4,7 @@
pipeline:
npm:
- image: node
+ image: tryton/sao-test
commands:
- sh .bower_allow_root.sh
- npm -s install --unsafe-perm
diff -r aef6d6500deb -r 51323c1749ed Gruntfile.js
--- a/Gruntfile.js Fri May 03 09:10:04 2019 +0200
+++ b/Gruntfile.js Fri May 03 11:01:36 2019 +0200
@@ -126,6 +126,14 @@
}
},
qunit: {
+ options: {
+ puppeteer: {
+ headless: true,
+ args: [
+ '--no-sandbox',
+ ],
+ },
+ },
all: ['tests/*.html']
}
});