forked from shinesolutions/puppet-aem-curator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 1.31 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
ci: clean deps lint package
clean:
rm -rf Gemfile.lock bin/ pkg/ stage/ test/ vendor/ /tmp/shinesolutions/puppet-aem-curator/
deps:
gem install bundler --version=2.3.21
bundle install --binstubs -j4
bundle exec r10k puppetfile install --verbose --moduledir modules
mkdir -p vendor/inspec && cp inspec.yml vendor/inspec/
bundle exec inspec vendor --overwrite vendor/inspec
cd vendor/inspec/vendor && mv */inspec-aem-*.*.* inspec-aem
rm -rf files/test/inspec/ && mkdir -p files/test/inspec/ && cp -R vendor/inspec/vendor/inspec-aem files/test/inspec/
lint:
bundle exec puppet-lint \
--fail-on-warnings \
--no-140chars-check \
--no-autoloader_layout-check \
--no-documentation-check \
./manifests/*.pp
puppet epp validate templates/*/*.epp
bundle exec rubocop Gemfile
mv Gemfile.lock Gemfile.lock.orig && PDK_DISABLE_ANALYTICS=true pdk validate metadata && mv Gemfile.lock.orig Gemfile.lock
package: deps
PDK_DISABLE_ANALYTICS=true pdk build --force
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
publish:
pdk release publish --force --forge-token=$(forge_token)
.PHONY: ci clean deps lint package release release-major release-minor release-patch publish