summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/dependabot.yml9
-rw-r--r--.github/workflows/ci.yml31
-rw-r--r--.github/workflows/test.yml17
-rwxr-xr-xbin/cibuild22
-rwxr-xr-xbin/console7
-rwxr-xr-xbin/lint5
-rwxr-xr-xbin/setup10
-rwxr-xr-xbin/shipit4
-rwxr-xr-xbin/style8
-rwxr-xr-xbin/test1
10 files changed, 55 insertions, 59 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..7824b5f
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,9 @@
+---
+version: 2
+updates:
+ - package-ecosystem: "bundler"
+ directory: "/"
+ schedule:
+ interval: "daily"
+ assignees:
+ - "xlgmokha"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..23dde06
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,31 @@
+name: ci
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby-version: ['2.5', '2.6', '2.7', '3.0']
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby-version }}
+ bundler-cache: true
+ - name: Running tests…
+ run: sh bin/test
+ style:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: '3.0'
+ bundler-cache: true
+ - name: Running style checks…
+ run: sh bin/style
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
deleted file mode 100644
index 794eb1d..0000000
--- a/.github/workflows/test.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: Test
-
-on: [push, pull_request]
-
-jobs:
- test:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- ruby: [ '2.5', '2.6', '2.7' ]
- steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-ruby@v1
- with:
- ruby-version: ${{ matrix.ruby }}
- - name: cibuild
- run: bin/cibuild
diff --git a/bin/cibuild b/bin/cibuild
deleted file mode 100755
index 4990224..0000000
--- a/bin/cibuild
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-set -e
-[ -z "$DEBUG" ] || set -x
-
-cd "$(dirname "$0")/.."
-
-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
-export CIBUILD=1
-
-echo "[$(date "+%H:%M:%S")] ==> Running setup…"
-bin/setup
-
-echo "[$(date "+%H:%M:%S")] ==> Running tests…"
-bin/test
-
-echo "[$(date "+%H:%M:%S")] ==> Running linters…"
-bin/lint
diff --git a/bin/console b/bin/console
index 3a6e116..520b0ca 100755
--- a/bin/console
+++ b/bin/console
@@ -4,12 +4,5 @@
require 'bundler/setup'
require 'net/hippie'
-# 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.
-
-# (If you use this, don't forget to add pry to your Gemfile!)
-# require "pry"
-# Pry.start
-
require 'irb'
IRB.start(__FILE__)
diff --git a/bin/lint b/bin/lint
deleted file mode 100755
index 054c5c8..0000000
--- a/bin/lint
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-set -e
-
-bundle exec rake lint
diff --git a/bin/setup b/bin/setup
index 1c303f4..f2ff019 100755
--- a/bin/setup
+++ b/bin/setup
@@ -1,7 +1,7 @@
-#!/usr/bin/env bash
-set -euo pipefail
-IFS=$'\n\t'
+#!/bin/sh
+set -e
+[ -z "$DEBUG" ] || set -x
+
+cd "$(dirname "$0")/.."
-ruby -v
-gem install bundler -v '~> 2.0'
bundle install
diff --git a/bin/shipit b/bin/shipit
index 5271880..f99d529 100755
--- a/bin/shipit
+++ b/bin/shipit
@@ -1,10 +1,8 @@
#!/bin/sh
set -e
+[ -z "$DEBUG" ] || set -x
cd "$(dirname "$0")/.."
-[ -z "$DEBUG" ] || set -x
-
-bin/cibuild
bundle exec rake release
diff --git a/bin/style b/bin/style
new file mode 100755
index 0000000..23fa24d
--- /dev/null
+++ b/bin/style
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+[ -z "$DEBUG" ] || set -x
+
+cd "$(dirname "$0")/.."
+
+bundle exec rake rubocop
diff --git a/bin/test b/bin/test
index e058fc5..5e102f4 100755
--- a/bin/test
+++ b/bin/test
@@ -1,6 +1,7 @@
#!/bin/sh
set -e
+[ -z "$DEBUG" ] || set -x
cd "$(dirname "$0")/.."