Add local buildkite CI runner

This commit is contained in:
Grimes
2018-05-28 12:38:55 -07:00
committed by Grimes
parent b70d730b32
commit 5af922722f
3 changed files with 22 additions and 1 deletions

19
ci/run-local.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash -e
#
# Run the entire buildkite CI pipeline locally for pre-testing before sending a
# Github pull request
#
cd "$(dirname "$0")/.."
BKRUN=ci/node_modules/.bin/bkrun
if [[ ! -x $BKRUN ]]; then
(
set -x
cd ci/
npm install bkrun
)
fi
set -x
./ci/node_modules/.bin/bkrun ci/buildkite.yml