Skip to content

Commit 1fb8b23

Browse files
committed
Set up BuildKite for Chrome
1 parent f6d4c6a commit 1fb8b23

4 files changed

Lines changed: 16 additions & 11 deletions

File tree

‎.buildkite/pipeline.yaml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ steps:
99

1010
- label: ":karma: Tests"
1111
command:
12-
#- "sudo apt-get install git"
12+
# Install chrome
13+
- "wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -"
14+
- "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'"
15+
- "apt-get update"
16+
- "apt-get install -y google-chrome-stable"
17+
# Run tests
1318
- "./scripts/fetch-develop.deps.sh --depth 1"
1419
- "yarn install"
1520
- "yarn test"
21+
env:
22+
CHROME_BIN: "/usr/bin/google-chrome-stable"
1623
plugins:
1724
- docker#v3.0.1:
1825
image: "node:10"
19-
#image: "buildkite/puppeteer:v1.11.0"
20-

‎karma.conf.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ module.exports = function (config) {
138138
],
139139

140140
customLaunchers: {
141-
'ChromeHeadless': {
141+
'VectorChromeHeadless': {
142142
base: 'Chrome',
143143
flags: [
144-
// '--no-sandbox',
144+
'--no-sandbox',
145145
// See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
146146
'--headless',
147147
'--disable-gpu',

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"lintall": "eslint src/ test/",
5757
"clean": "rimraf lib webapp electron_app/dist",
5858
"prepare": "yarn clean && yarn build:compile",
59-
"test": "karma start --single-run=true --autoWatch=false --browsers ChromeHeadless",
59+
"test": "karma start --single-run=true --autoWatch=false --browsers VectorChromeHeadless",
6060
"test-multi": "karma start"
6161
},
6262
"dependencies": {
@@ -117,7 +117,7 @@
117117
"html-webpack-plugin": "^3.2.0",
118118
"json-loader": "^0.5.3",
119119
"karma": "^3.1.2",
120-
"karma-chrome-launcher": "^0.2.3",
120+
"karma-chrome-launcher": "^2.2.0",
121121
"karma-cli": "^1.0.1",
122122
"karma-junit-reporter": "^2.0.0",
123123
"karma-logcapture-reporter": "0.0.1",

‎yarn.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5336,10 +5336,10 @@ jsx-ast-utils@^2.0.1:
53365336
dependencies:
53375337
array-includes "^3.0.3"
53385338

5339-
karma-chrome-launcher@^0.2.3:
5340-
version "0.2.3"
5341-
resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-0.2.3.tgz#4c6d700d163a9d34c618efd87918be49e7a4a8c9"
5342-
integrity sha1-TG1wDRY6nTTGGO/YeRi+SeekqMk=
5339+
karma-chrome-launcher@^2.2.0:
5340+
version "2.2.0"
5341+
resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz#cf1b9d07136cc18fe239327d24654c3dbc368acf"
5342+
integrity sha512-uf/ZVpAabDBPvdPdveyk1EPgbnloPvFFGgmRhYLTDH7gEB4nZdSBk8yTU47w1g/drLSx5uMOkjKk7IWKfWg/+w==
53435343
dependencies:
53445344
fs-access "^1.0.0"
53455345
which "^1.2.1"

0 commit comments

Comments
 (0)