Skip to content

Commit 771909e

Browse files
authored
Merge pull request element-hq#9165 from vector-im/travis/buildkite
Use Buildkite for CI
2 parents bccdd60 + df7b617 commit 771909e

6 files changed

Lines changed: 37 additions & 41 deletions

File tree

‎.buildkite/pipeline.yaml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
steps:
2+
- label: ":eslint: Lint"
3+
command:
4+
- "yarn install"
5+
- "yarn lint"
6+
plugins:
7+
- docker#v3.0.1:
8+
image: "node:10"
9+
10+
- label: ":karma: Tests"
11+
command:
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
18+
- "./scripts/fetch-develop.deps.sh --depth 1"
19+
- "yarn install"
20+
- "yarn test"
21+
env:
22+
CHROME_BIN: "/usr/bin/google-chrome-stable"
23+
plugins:
24+
- docker#v3.0.1:
25+
image: "node:10"
26+
propagate-environment: true

‎.travis.yml‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎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",

‎scripts/fetch-develop.deps.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ function dodep() {
4040
# Try the PR author's branch in case it exists on the deps as well.
4141
# Try the target branch of the push or PR.
4242
# Use the default branch as the last resort.
43-
if [[ "$TRAVIS" == true ]]; then
44-
clone $org $repo $TRAVIS_PULL_REQUEST_BRANCH ||
45-
clone $org $repo $TRAVIS_BRANCH ||
43+
if [[ "$BUILDKITE" == true ]]; then
44+
clone $org $repo $BUILDKITE_BRANCH ||
45+
clone $org $repo $BUILDKITE_PULL_REQUEST_BASE_BRANCH ||
4646
clone $org $repo $defbranch ||
4747
return $?
4848
else

‎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)