Skip to content

Commit

Permalink
Merge pull request #2 from blaknite/buildkite
Browse files Browse the repository at this point in the history
Switch to Buildkite
  • Loading branch information
blaknite authored Feb 9, 2021
2 parents a6e4ca4 + 548a9d7 commit 784d160
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- name: ":rspec:"
command: "rspec --color spec"
plugins:
docker-compose#v3.7.0:
run: test
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.1
2.7.2
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ruby:2.7-alpine

WORKDIR /app

RUN apk add --no-cache \
git \
build-base \
imagemagick

COPY . .

RUN gem install bundler

RUN bundle install

RUN apk del -r --purge --no-cache \
git \
build-base
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ DEPENDENCIES
rspec

BUNDLED WITH
1.14.6
2.2.5
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Emulating an 8-bit Computer design in Ruby

[![Build Status](https://travis-ci.org/blaknite/cpu-emulator.svg?branch=master)](https://travis-ci.org/blaknite/cpu-emulator)
[![Build status](https://badge.buildkite.com/79601937713cccb07e1f81f06497cb7d06f5c6b3c11b1f5fb0.svg)](https://buildkite.com/blaknite/cpu-emulator)

Started out as a 4-bit computer but grew as I wanted to do more with it. Original idea here:

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3'
services:
test:
build:
context: .
command: sh
4 changes: 2 additions & 2 deletions spec/instruction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
context 'when defining an instruction' do
context 'when the instruction is valid' do
it 'should define the instruction' do
expect{ Instruction.define :JMP {} }.not_to raise_error
expect{ Instruction.define(:JMP) {} }.not_to raise_error
end
end

context 'when the instruction is invalid' do
it 'should define the instruction' do
expect{ Instruction.define :test {} }.to raise_error(StandardError, 'invalid instruction: test')
expect{ Instruction.define(:test) {} }.to raise_error(StandardError, 'invalid instruction: test')
end
end
end
Expand Down

0 comments on commit 784d160

Please sign in to comment.