summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cibuild18
-rwxr-xr-xbin/console7
-rwxr-xr-xbin/lint11
-rwxr-xr-xbin/shipit10
-rwxr-xr-xbin/test17
5 files changed, 60 insertions, 3 deletions
diff --git a/bin/cibuild b/bin/cibuild
new file mode 100755
index 0000000..44eda04
--- /dev/null
+++ b/bin/cibuild
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+cd "$(dirname "$0")/.."
+
+echo ["$(date "+%H:%M:%S")"] "==> Started at…"
+
+# GC customizations
+export RUBY_GC_MALLOC_LIMIT=79000000
+export RUBY_GC_HEAP_INIT_SLOTS=800000
+export RUBY_HEAP_FREE_MIN=100000
+export RUBY_HEAP_SLOTS_INCREMENT=400000
+export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
+
+gem install bundler --conservative -v '~> 2.0'
+bin/test
+bin/lint
diff --git a/bin/console b/bin/console
index bee4fa0..3ea9255 100755
--- a/bin/console
+++ b/bin/console
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
-require "bundler/setup"
-require "spandx/gitlab"
+require 'bundler/setup'
+require 'spandx/gitlab'
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
@@ -10,5 +11,5 @@ require "spandx/gitlab"
# require "pry"
# Pry.start
-require "irb"
+require 'irb'
IRB.start(__FILE__)
diff --git a/bin/lint b/bin/lint
new file mode 100755
index 0000000..857904b
--- /dev/null
+++ b/bin/lint
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+[ -z "$DEBUG" ] || set -x
+
+echo ["$(date "+%H:%M:%S")"] "==> Running setup…"
+bin/setup
+
+echo ["$(date "+%H:%M:%S")"] "==> Running linters…"
+bundle exec rake lint
diff --git a/bin/shipit b/bin/shipit
new file mode 100755
index 0000000..5271880
--- /dev/null
+++ b/bin/shipit
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+cd "$(dirname "$0")/.."
+
+[ -z "$DEBUG" ] || set -x
+
+bin/cibuild
+bundle exec rake release
diff --git a/bin/test b/bin/test
new file mode 100755
index 0000000..3c7439d
--- /dev/null
+++ b/bin/test
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+cd "$(dirname "$0")/.."
+
+[ -z "$DEBUG" ] || set -x
+
+echo ["$(date "+%H:%M:%S")"] "==> Running setup…"
+bin/setup
+
+echo ["$(date "+%H:%M:%S")"] "==> Running tests…"
+if [ $# -eq 0 ]; then
+ bundle exec rspec spec
+else
+ bundle exec rspec "$@"
+fi