diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000..3688acb --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,6 @@ +steps: + - name: ":rspec:" + command: "rspec --color spec" + plugins: + docker-compose#v3.7.0: + run: test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c121c2c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: ruby -rvm: - - 2.4.1 -script: "bundle exec rspec spec" -gemfile: - - Gemfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2c5f47a --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index e73f2a5..366bfb6 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..43d2c80 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3' +services: + test: + build: + context: . + command: sh