Add --no-sandbox flag
continuous-integration/drone the build failed Details

This commit is contained in:
Manuel Friedli 2018-09-01 05:30:13 +02:00
parent bf27baa7f5
commit a8ddf4ce38
3 changed files with 8 additions and 1 deletions

View File

@ -5,5 +5,5 @@ pipeline:
- apt-get update
- apt-get install -yq libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libcups2 libxss1 libxrandr2 libpangocairo-1.0-0 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libnss3 libasound2
- npm install
- npm run test
- npm run test-no-sandbox
- npm run build-prod

View File

@ -25,6 +25,7 @@
"build": "ng build --delete-output-path",
"build-prod": "ng build --prod --optimization --aot --delete-output-path --build-optimizer",
"test": "ng test",
"test-no-sandbox": "ng test --browsers ChromeHeadlessNoSandbox",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "npm rebuild node-sass"

View File

@ -29,6 +29,12 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false
});
};