Skip to content

Instantly share code, notes, and snippets.

View toolmantim's full-sized avatar
:shipit:
🎉

Tim Lucas toolmantim

:shipit:
🎉
View GitHub Profile

Usage example:

$ docker-compose build
$ docker run -it --rm -v /some-local-plugin-path:/plugin:ro buildkite/plugin-example-validator /plugin/schema.yml /plugin/readme.md
🙌 Readme examples validate against the schema
@toolmantim
toolmantim / pipeline.yml
Created October 24, 2017 04:59
An example of using Taurus with Buildkite
steps:
- command: "taurus.sh some-config.yml"
label: "Taurus"
artifact_paths: "bzt-artifacts/*"
@toolmantim
toolmantim / blazemeter
Created October 24, 2017 04:50
An example of using BlazeMeter with Buildkite
#!/bin/bash
# Creates a new Blazemeter test with the given BLAZEMETER_TEST_ID env var
#
# Requires BLAZEMETER_API_ID and BLAZEMETER_API_SECRET environment variables be
# setup on the agent as per:
# https://buildkite.com/docs/agent/securing#using-environment-hooks-for-secrets
set -euo pipefail
@toolmantim
toolmantim / bootsnap.log
Created October 17, 2017 02:33
Before/after adding bootsnap
$ # Before bootsnap
$ time DISABLE_SPRING=1 bin/rails r 'exit 0'
real 0m7.030s
user 0m4.429s
sys 0m2.499s
$ # Adding bootsnap
$ git diff -u
diff --git a/Gemfile b/Gemfile
index b6b7854cf..445cb572f 100644
@toolmantim
toolmantim / 0-Readme.md
Last active August 3, 2017 17:29
An example custom Buildkite bootstrap wrapper for optimizing git fetch with Phabricator builds

To test this bootstrap wrapper:

git clone https://gist.github.com/43de11658602b3f7c0e1921fcea7ac5f.git optimized-phabricator-bootstrap

cd optimized-phabricator-bootstrap

docker run \
  --rm \
 -it \
FROM alpine
ADD helloworld-1.sh /usr/local/bin/helloworld.sh

Keybase proof

I hereby claim:

  • I am toolmantim on github.
  • I am toolmantim (https://keybase.io/toolmantim) on keybase.
  • I have a public key whose fingerprint is 51E1 AF0E 4F3F 1FC3 934A B4C7 459A A1BD A3B5 BF86

To claim this, I am signing this object:

@toolmantim
toolmantim / pipeline.yml
Last active May 3, 2017 13:02
Testing agent signal handling
steps:
- name: Test 1
command: test-1.sh
agents:
queue: "$BUILDKITE_AGENT_META_DATA_QUEUE"
- name: Test 2
command: test-2.sh
agents:
queue: "$BUILDKITE_AGENT_META_DATA_QUEUE"
- name: Test 3
@toolmantim
toolmantim / pipeline.yml
Created April 19, 2017 00:29
Testing BUILDKITE_COMMIT with pipeline.yml files
steps:
- command: echo "$BUILDKITE_COMMIT"
@toolmantim
toolmantim / retry.bash
Last active April 7, 2017 05:21
A Bash function you can use in scripts to retry Buildkite steps. License: MIT
#!/bin/bash
# Retries a command a number of times, with exponential backoff
#
# Usage:
# retry <number-of-retries> <command>
#
# Examples:
# retry 3 make test
# retry 5 curl -O https://buildkite.com/