-
-
Notifications
You must be signed in to change notification settings - Fork 829
Use Buildkite for CI #2788
Use Buildkite for CI #2788
Changes from all commits
618b2b1
fd23be9
378bf68
311c81f
c63c6fc
bdc94f3
cab5f7a
d8a5590
5b68a70
365c8e9
6d7703d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
steps: | ||
- label: ":eslint: Lint" | ||
command: | ||
- "yarn install" | ||
- "yarn lintwithexclusions" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
|
||
# - label: ":chains: End-to-End Tests" | ||
# command: | ||
# # TODO: Remove hacky chmod for BuildKite | ||
# - "chmod +x ./scripts/ci/*.sh" | ||
# - "chmod +x ./scripts/*" | ||
# - "sudo apt-get install build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev" | ||
# - "./scripts/ci/install-deps.sh" | ||
# - "./scripts/ci/end-to-end-tests.sh" | ||
# plugins: | ||
# - docker#v3.0.1: | ||
# image: "node:10" | ||
|
||
- label: ":karma: Tests" | ||
command: | ||
# 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 | ||
# TODO: Remove hacky chmod for BuildKite | ||
- "chmod +x ./scripts/ci/*.sh" | ||
- "chmod +x ./scripts/*" | ||
- "./scripts/ci/install-deps.sh" | ||
- "./scripts/ci/unit-tests.sh" | ||
env: | ||
CHROME_BIN: "/usr/bin/google-chrome-stable" | ||
turt2live marked this conversation as resolved.
Show resolved
Hide resolved
|
||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
propagate-environment: true | ||
|
||
- label: "🔧 Riot Tests" | ||
command: | ||
# 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 | ||
# TODO: Remove hacky chmod for BuildKite | ||
- "chmod +x ./scripts/ci/*.sh" | ||
- "chmod +x ./scripts/*" | ||
- "./scripts/ci/install-deps.sh" | ||
- "./scripts/ci/riot-unit-tests.sh" | ||
env: | ||
CHROME_BIN: "/usr/bin/google-chrome-stable" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
propagate-environment: true |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,9 +135,10 @@ module.exports = function (config) { | |
], | ||
|
||
customLaunchers: { | ||
'ChromeHeadless': { | ||
'VectorChromeHeadless': { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm using Vector in the company sense here, not in the product sense. |
||
base: 'Chrome', | ||
flags: [ | ||
'--no-sandbox', | ||
// See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md | ||
'--headless', | ||
'--disable-gpu', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/bin/bash | ||
# | ||
# script which is run by the travis build (after `yarn test`). | ||
# script which is run by the CI build (after `yarn test`). | ||
# | ||
# clones riot-web develop and runs the tests against our version of react-sdk. | ||
|
||
set -ev | ||
|
||
RIOT_WEB_DIR=riot-web | ||
|
||
scripts/travis/build.sh | ||
scripts/ci/build.sh | ||
pushd "$RIOT_WEB_DIR" | ||
yarn test | ||
popd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# | ||
# script which is run by the CI build (after `yarn test`). | ||
# | ||
# clones riot-web develop and runs the tests against our version of react-sdk. | ||
|
||
set -ev | ||
|
||
scripts/ci/build.sh | ||
yarn test |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,11 @@ clone() { | |
fi | ||
} | ||
|
||
|
||
# Try the PR author's branch in case it exists on the deps as well. | ||
clone $TRAVIS_PULL_REQUEST_BRANCH | ||
turt2live marked this conversation as resolved.
Show resolved
Hide resolved
|
||
clone $BUILDKITE_BRANCH | ||
# Try the target branch of the push or PR. | ||
clone $TRAVIS_BRANCH | ||
clone $BUILDKITE_PULL_REQUEST_BASE_BRANCH | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for bringing these back. The |
||
# Try the current branch from Jenkins. | ||
clone `"echo $GIT_BRANCH" | sed -e 's/^origin\///'` | ||
# Use the default branch as the last resort. | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still feels wasteful to duplicate so much of the installation... I can't tell from the BK log how long each step takes right now, since the log get truncated...
Speaking of that, the biggest factor in our log length seems to be Webpack's
--progress
output. Can we change Webpack options used in CI so that the log shows up start to finish in BK?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log gets truncated for the web view only - as mentioned in the error, there's a download button for when your build explodes and you want to see the whole log. Historically, our stuff breaks before it would reach the point of truncation.