diff options
| author | Adam Malczewski <[email protected]> | 2026-04-28 14:11:16 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-04-28 14:11:16 +0900 |
| commit | 07277435c0688ad9f5fa682633b86b99ef5bb854 (patch) | |
| tree | 3e650e97bcbd229f942330542a333dcad1844542 /bin/check | |
| download | dispatch-adapter-interface-07277435c0688ad9f5fa682633b86b99ef5bb854.tar.gz dispatch-adapter-interface-07277435c0688ad9f5fa682633b86b99ef5bb854.zip | |
update
Diffstat (limited to 'bin/check')
| -rwxr-xr-x | bin/check | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bin/check b/bin/check new file mode 100755 index 0000000..ddcad0c --- /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-interface — $(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" |
