forked from twilio/twilio-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (20 loc) · 747 Bytes
/
Makefile
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
.PHONY: githooks test lint-changed lint docs
CHANGED_RUBY_FILES = $(shell git status --porcelain | grep ".rb" | awk -F ' ' '{print $2}' | tr '\n' ' ')
install: githooks
bundle install; bundle exec rake install
test-install:
bundle install
test: lint
bundle exec rake spec
docs:
yard doc --output-dir ./doc
lint:
rubocop --cache true --parallel
githooks:
cp githooks/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
authors:
echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
gem:
bundle exec rake build | sed -e 's/.*pkg/pkg/g' | sed -e "s/\.$$//g" | xargs gem push