Add local buildkite CI runner
This commit is contained in:
2
ci/.gitignore
vendored
Normal file
2
ci/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/node_modules/
|
||||||
|
/package-lock.json
|
19
ci/run-local.sh
Executable file
19
ci/run-local.sh
Executable 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
|
@ -6,7 +6,7 @@ cd "$(dirname "$0")/.."
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
docker pull koalaman/shellcheck
|
docker pull koalaman/shellcheck
|
||||||
find . -name "*.sh" -not -regex ".*/.cargo/.*" -print0 \
|
find -E . -name "*.sh" -not -regex ".*/(.cargo|node_modules)/.*" -print0 \
|
||||||
| xargs -0 \
|
| xargs -0 \
|
||||||
docker run -w /work -v "$PWD:/work" \
|
docker run -w /work -v "$PWD:/work" \
|
||||||
koalaman/shellcheck --color=always --external-sources --shell=bash
|
koalaman/shellcheck --color=always --external-sources --shell=bash
|
||||||
|
Reference in New Issue
Block a user