-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
63 lines (49 loc) · 1.65 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
54
55
56
57
58
59
60
61
62
63
.PHONY: clean
.DEFAULT: validate
# Use PDK if it's installed, otherwise just use native bundler
ifeq ($(wildcard /opt/puppetlabs/pdk/bin/pdk),)
PDK =
else
PDK = /opt/puppetlabs/pdk/bin/pdk
endif
all: test
test: validate unit acceptance documentation
release: test release_updates
acceptance: test_puppet6 test_puppet7
setup:
${PDK} bundle install
validate: setup
${PDK} bundle exec rake metadata_lint
${PDK} bundle exec rake syntax
${PDK} bundle exec rake validate
${PDK} bundle exec rake rubocop
${PDK} bundle exec rake lint
${PDK} bundle exec rake check:git_ignore
${PDK} bundle exec rake check:dot_underscore
${PDK} bundle exec rake check:symlinks
${PDK} bundle exec puppet-lint manifests
unit: setup
${PDK} bundle exec rake spec
test_puppet6: setup
${PDK} bundle exec rake 'litmus:provision_list[release_tests]'
${PDK} bundle exec rake litmus:install_agent[puppet6]
${PDK} bundle exec rake litmus:install_module
${PDK} bundle exec rake litmus:acceptance:parallel
${PDK} bundle exec rake litmus:tear_down
test_puppet7: setup
${PDK} bundle exec rake 'litmus:provision_list[release_tests]'
${PDK} bundle exec rake litmus:install_agent[puppet7]
${PDK} bundle exec rake litmus:install_module
${PDK} bundle exec rake litmus:acceptance:parallel
${PDK} bundle exec rake litmus:tear_down
teardown: setup
${PDK} bundle exec rake litmus:tear_down
documentation: setup
${PDK} bundle exec puppet strings generate --format=markdown
release_updates: setup documentation
${PDK} bundle exec rake module:bump:minor
${PDK} bundle exec rake changelog
${PDK} bundle exec rake module:tag
${PDK} bundle exec rake build
clean: setup
${PDK} bundle exec rake module:clean