-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
53 lines (42 loc) · 1.25 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
51
52
53
version ?= 0.15.2-pre.0
ci: clean deps lint package
deps:
gem install bundler --version=1.17.3
bundle install --binstubs
clean:
rm -rf .bundle/ bin/ stage/ *.lock
lint:
bundle exec puppet-lint \
--fail-on-warnings \
--no-140chars-check \
--no-autoloader_layout-check \
--no-documentation-check \
./modules/aem_helloworld/manifests/*.pp
bundle exec rubocop
shellcheck *.sh
package: clean
mkdir -p stage
tar \
-zcvf stage/aem-helloworld-custom-stack-provisioner-$(version).tar.gz \
--exclude="*.DS_Store" \
--exclude="*bin*" \
--exclude="*stage*" \
--exclude="*.idea*" \
--exclude="*.git*" \
--exclude="*.lock*" \
--exclude="*.bundle*" \
--exclude=".*.yml" \
--exclude="Gemfile" \
--exclude="Makefile" \
.
publish:
gh release create $(version) --title $(version) --notes "" || echo "Release $(version) has been created on GitHub"
gh release upload $(version) stage/aem-helloworld-custom-stack-provisioner-$(version).tar.gz
release-major:
rtk release --release-increment-type major
release-minor:
rtk release --release-increment-type minor
release-patch:
rtk release --release-increment-type patch
release: release-minor
.PHONY: ci clean deps lint package publish release release-major release-minor release-patch