Set up BuildKite for Chrome

This commit is contained in:
Travis Ralston 2019-03-13 19:46:52 -06:00
parent f6d4c6a5a3
commit 1fb8b23d4c
4 changed files with 16 additions and 11 deletions

View file

@ -9,12 +9,17 @@ steps:
- label: ":karma: Tests" - label: ":karma: Tests"
command: command:
#- "sudo apt-get install git" # Install chrome
- "wget -q -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.list'"
- "apt-get update"
- "apt-get install -y google-chrome-stable"
# Run tests
- "./scripts/fetch-develop.deps.sh --depth 1" - "./scripts/fetch-develop.deps.sh --depth 1"
- "yarn install" - "yarn install"
- "yarn test" - "yarn test"
env:
CHROME_BIN: "/usr/bin/google-chrome-stable"
plugins: plugins:
- docker#v3.0.1: - docker#v3.0.1:
image: "node:10" image: "node:10"
#image: "buildkite/puppeteer:v1.11.0"

View file

@ -138,10 +138,10 @@ module.exports = function (config) {
], ],
customLaunchers: { customLaunchers: {
'ChromeHeadless': { 'VectorChromeHeadless': {
base: 'Chrome', base: 'Chrome',
flags: [ flags: [
// '--no-sandbox', '--no-sandbox',
// See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md // See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
'--headless', '--headless',
'--disable-gpu', '--disable-gpu',

View file

@ -56,7 +56,7 @@
"lintall": "eslint src/ test/", "lintall": "eslint src/ test/",
"clean": "rimraf lib webapp electron_app/dist", "clean": "rimraf lib webapp electron_app/dist",
"prepare": "yarn clean && yarn build:compile", "prepare": "yarn clean && yarn build:compile",
"test": "karma start --single-run=true --autoWatch=false --browsers ChromeHeadless", "test": "karma start --single-run=true --autoWatch=false --browsers VectorChromeHeadless",
"test-multi": "karma start" "test-multi": "karma start"
}, },
"dependencies": { "dependencies": {
@ -117,7 +117,7 @@
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"json-loader": "^0.5.3", "json-loader": "^0.5.3",
"karma": "^3.1.2", "karma": "^3.1.2",
"karma-chrome-launcher": "^0.2.3", "karma-chrome-launcher": "^2.2.0",
"karma-cli": "^1.0.1", "karma-cli": "^1.0.1",
"karma-junit-reporter": "^2.0.0", "karma-junit-reporter": "^2.0.0",
"karma-logcapture-reporter": "0.0.1", "karma-logcapture-reporter": "0.0.1",

View file

@ -5336,10 +5336,10 @@ jsx-ast-utils@^2.0.1:
dependencies: dependencies:
array-includes "^3.0.3" array-includes "^3.0.3"
karma-chrome-launcher@^0.2.3: karma-chrome-launcher@^2.2.0:
version "0.2.3" version "2.2.0"
resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-0.2.3.tgz#4c6d700d163a9d34c618efd87918be49e7a4a8c9" resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz#cf1b9d07136cc18fe239327d24654c3dbc368acf"
integrity sha1-TG1wDRY6nTTGGO/YeRi+SeekqMk= integrity sha512-uf/ZVpAabDBPvdPdveyk1EPgbnloPvFFGgmRhYLTDH7gEB4nZdSBk8yTU47w1g/drLSx5uMOkjKk7IWKfWg/+w==
dependencies: dependencies:
fs-access "^1.0.0" fs-access "^1.0.0"
which "^1.2.1" which "^1.2.1"