Created
March 30, 2017 19:07
-
-
Save fujin/185665a555d1dd3804f11bc5edbb1a23 to your computer and use it in GitHub Desktop.
Docker + Xvfb + Chrome + protractor/karma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browsers: ['Chrome_no_sandbox'], | |
customLaunchers: { | |
Chrome_no_sandbox: { | |
base: 'Chrome', | |
flags: ['--no-sandbox'] | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
capabilities: { | |
'browserName': 'chrome', | |
'chromeOptions': { | |
'args': ['no-sandbox'] | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -xeo pipefail | |
export DISPLAY=:99.0 | |
export CHROME_BIN=/usr/bin/chromium | |
install_packages chromium xvfb | |
Xvfb :99 -ac -screen 0 1280x720x16 -nolisten tcp & | |
npm install | |
npm test | |
npm cache clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment