summaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-04-28 14:10:04 +0900
committerAdam Malczewski <[email protected]>2026-04-28 14:10:04 +0900
commit1ec2afaa21b8c3ef336982e80259b9bb79e3fb32 (patch)
tree7cf43fbd4efc6d6834744d800822255fd3d44d05 /bin
parente6c2f23b58a1e87088ee75632c74fee4f15f6a94 (diff)
downloaddispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.tar.gz
dispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.zip
updatesdev
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check32
-rwxr-xr-xbin/install23
2 files changed, 55 insertions, 0 deletions
diff --git a/bin/check b/bin/check
new file mode 100755
index 0000000..98a0d79
--- /dev/null
+++ b/bin/check
@@ -0,0 +1,32 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+cd "$(dirname "$0")/.."
+
+RESULTS_FILE="test_results.txt"
+
+{
+ echo "============================================"
+ echo "dispatch-adapter-copilot — $(date)"
+ echo "============================================"
+ echo ""
+
+ echo "--- bundle install ---"
+ bundle install 2>&1
+ echo ""
+
+ echo "--- rubocop --autocorrect-all ---"
+ bundle exec rubocop --autocorrect-all 2>&1 || true
+ echo ""
+
+ echo "--- rspec ---"
+ bundle exec rspec 2>&1 || true
+ echo ""
+
+ echo "============================================"
+ echo "Done."
+ echo "============================================"
+} | tee "$RESULTS_FILE"
+
+echo ""
+echo "Results written to $RESULTS_FILE"
diff --git a/bin/install b/bin/install
new file mode 100755
index 0000000..5986c4a
--- /dev/null
+++ b/bin/install
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+cd "$(dirname "$0")/.."
+
+GEM_NAME="dispatch-adapter-copilot"
+
+echo "--- Building $GEM_NAME ---"
+gem build "$GEM_NAME.gemspec"
+
+GEM_FILE=$(ls -t "$GEM_NAME"-*.gem 2>/dev/null | head -1)
+
+if [ -z "$GEM_FILE" ]; then
+ echo "ERROR: No .gem file found after build."
+ exit 1
+fi
+
+echo ""
+echo "--- Installing $GEM_FILE ---"
+gem install "$GEM_FILE" --local
+
+echo ""
+echo "Done. $GEM_NAME installed."