Skip to content

Commit 50f1686

Browse files
authored
Travis -> Buildkite (#88)
* buildkite * chmod * ruby * install ruby using apt * bash iit * use apt-get * try sudo * use docker * sudo * use jekyll docker * copy over things * make gemfile.lock writeable * make _site writeable * remove travis * clean up
1 parent 9c0635d commit 50f1686

5 files changed

Lines changed: 42 additions & 10 deletions

File tree

.buildkite/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# hack to make things writeable by bundle
6+
touch Gemfile.lock
7+
chmod a+w Gemfile.lock
8+
mkdir _site
9+
chmod a+w _site
10+
11+
bundle install
12+
bundle exec jekyll build

.buildkite/hooks/pre-command

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
export PATH="$HOME/.rbenv/bin:$PATH"
6+
7+
eval "$(rbenv init -)"

.buildkite/pipeline.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
DOCKER_PLUGIN_VERSION="${DOCKER_PLUGIN_VERSION:-v3.3.0}"
5+
6+
cat <<EOF
7+
steps:
8+
EOF
9+
10+
###### WAIT a visible marker between pipeline generation and starting.
11+
cat <<EOF
12+
- wait
13+
EOF
14+
15+
cat <<EOF
16+
- label: ":jekyll: jekyll"
17+
command:
18+
- ".buildkite/build.sh"
19+
plugins:
20+
- docker#${DOCKER_PLUGIN_VERSION}:
21+
image: jekyll/jekyll
22+
always-pull: true
23+
EOF

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis/build.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)