This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2788 from matrix-org/travis/buildkite
Use Buildkite for CI
- Loading branch information
Showing
12 changed files
with
86 additions
and
62 deletions.
There are no files selected for viewing
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
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" | ||
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.
Oops, something went wrong.
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
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
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
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
0
scripts/travis/install-deps.sh → scripts/ci/install-deps.sh
100755 → 100644
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
scripts/travis/riot-unit-tests.sh → scripts/ci/riot-unit-tests.sh
100755 → 100644
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
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 |
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
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 |
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
This file was deleted.
Oops, something went wrong.
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