summaryrefslogtreecommitdiffstats
path: root/.builds/ruby.yml
diff options
context:
space:
mode:
authora14m <[email protected]>2020-12-16 12:18:37 +0100
committera14m <[email protected]>2020-12-16 12:20:47 +0100
commit9ca5a4d472f6d6b147d5cf8b3f1181d5d9e7a044 (patch)
tree2f22efb945cc12298539f65f37ce81a00f54a6a2 /.builds/ruby.yml
parentb34b09f9530befc0b419a76b992b0b7937a39b7d (diff)
Move the build to be ruby specific
Diffstat (limited to '.builds/ruby.yml')
-rw-r--r--.builds/ruby.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.builds/ruby.yml b/.builds/ruby.yml
new file mode 100644
index 0000000..eade737
--- /dev/null
+++ b/.builds/ruby.yml
@@ -0,0 +1,22 @@
+image: alpine/latest
+
+packages:
+ - ruby
+ - ruby-dev
+ - ruby-bundler
+
+sources:
+ - https://git.sr.ht/~a14m/game-of-life
+
+tasks:
+ - build: |
+ cd game-of-life/CLI/ruby
+ bundle install -j $(nproc)
+
+ - test: |
+ cd game-of-life/CLI/ruby
+ bundle exec rspec --format progress
+
+ - lint: |
+ cd game-of-life/CLI/ruby
+ bundle exec rubocop