Skip to content

Commit 084576e

Browse files
committed
Shuffle some deck-chairs
* Move everything under .buildkite/ * Make ruby version selectable
1 parent 3691937 commit 084576e

File tree

7 files changed

+40
-31
lines changed

7 files changed

+40
-31
lines changed

.buildkite/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ARG RUBY_IMAGE
2+
FROM ${RUBY_IMAGE:-ruby:latest}
3+
4+
RUN which git >/dev/null || ( \
5+
apt-get update && \
6+
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
7+
git \
8+
)
9+
10+
ENV JRUBY_OPTS="--dev -J-Xmx400M"
11+
12+
RUN mkdir /app
13+
WORKDIR /app
14+
15+
ADD Gemfile Gemfile.lock /app/
16+
RUN bundle install -j 8
17+
18+
ADD . /app

.buildkite/docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "3.6"
2+
3+
services:
4+
app:
5+
build:
6+
context: ../
7+
dockerfile: .buildkite/Dockerfile
8+
args:
9+
- RUBY_IMAGE
10+
environment:
11+
- CI

.buildkite/pipeline.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
steps:
2-
- name: ":rspec:"
3-
command: "rspec --color specs"
1+
_templates:
2+
- &base
43
plugins:
54
docker-compose#v2.6.0:
65
run: app
6+
config: .buildkite/docker-compose.yml
7+
timeout_in_minutes: 10
8+
9+
steps:
10+
- <<: *base
11+
name: ":rspec:"
12+
command: "rspec --color specs"
13+
env:
14+
RUBY_IMAGE: "ruby:2.5"

.buildkite/template.yml

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

Dockerfile

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

docker-compose.yml

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

renovate.json

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

0 commit comments

Comments
 (0)