blob: 98a0d79796efe8fae9db5923c3ba6aa6435357bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"
|