Skip to content

Commit

Permalink
Add local buildkite CI runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Grimes authored and solana-grimes committed May 29, 2018
1 parent b70d730 commit 5af9227
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ci/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/package-lock.json
19 changes: 19 additions & 0 deletions ci/run-local.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion ci/shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "$(dirname "$0")/.."

set -x
docker pull koalaman/shellcheck
find . -name "*.sh" -not -regex ".*/.cargo/.*" -print0 \
find -E . -name "*.sh" -not -regex ".*/(.cargo|node_modules)/.*" -print0 \
| xargs -0 \
docker run -w /work -v "$PWD:/work" \
koalaman/shellcheck --color=always --external-sources --shell=bash
Expand Down

0 comments on commit 5af9227

Please sign in to comment.