-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup
More file actions
executable file
·33 lines (29 loc) · 1.05 KB
/
setup
File metadata and controls
executable file
·33 lines (29 loc) · 1.05 KB
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
33
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
echo "==> Installing Ruby dependencies..."
bundle install
echo
echo "==> Installing Node dependencies (required for make lint)..."
npm ci --ignore-scripts --no-fund --no-audit
echo
echo "==> Checking system tools..."
if command -v yamllint &>/dev/null; then
echo " yamllint: ok ($(yamllint --version))"
else
echo " yamllint: not found"
echo " Install with one of:"
echo " brew install yamllint"
echo " pip install yamllint"
fi
echo
echo "==> Setup complete. Common commands:"
echo
echo " make # lint + validate + test"
echo " make lint # yamllint, rubocop, prettier"
echo " make validate # validate all configs against the html2rss schema"
echo " make test # run rspec"
echo
echo " make test-config CONFIG=github.com/releases.yml # test a single config"
echo " make test-domain DOMAIN=github.com # test all configs for a domain"
echo " make schema # write schema locally (optional)"