-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
50 lines (37 loc) · 1.44 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
bumpmajor: ## bumps version for a major release
semver inc major
sed -i -r "s/(([0-9])+\.){2}([0-9]+)/`semver | tr -d \v`/" metadata.rb
cat metadata.rb
bumpminor: ## bumps version for a minor release
semver inc minor
sed -i -r "s/(([0-9])+\.){2}([0-9]+)/`semver | tr -d \v`/" metadata.rb
cat metadata.rb
bumppatch: ## bumps version for path/hotfix release
semver inc patch
sed -i -r "s/(([0-9])+\.){2}([0-9]+)/`semver | tr -d \v`/" metadata.rb
cat metadata.rb
foodtest: ## run foodcritic
foodcritic .
getdeps: ## get dependencies
bundle
gittag: ## makes tag in git
-git tag -d `semver`
-git push origin :refs/tags/`semver`
git tag -a `semver tag` -m "tagging `semver` for release"
git push origin `semver`
kitchenconverge: ## kitchen converge
kitchen converge
kitchenverify: ## kitchen verify
kitchen verify
rubofix: ## run rubocop and attempt to auto correct
rubocop -D -a -c .rubocop.yml
rubotest: ## run rubocop with our config file
rubocop -D -c .rubocop.yml
test: rubotest foodtest kitchenconverge kitchenverify ## tests to run locally when developing
travisci: rubotest foodtest ## tests to run in travis when a pr is created
# if instance is not specified it will run all instances
KITCHEN_YAML=.kitchen.dokken.yml bundle exec kitchen test ${INSTANCE}
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: help
.DEFAULT_GOAL := help