forked from voxpupuli/puppet-logstash
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
52 lines (40 loc) · 964 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# opensuse-121 \
# sles-11sp3 \
default: deps lint docs
distros = \
centos-6 \
centos-7 \
debian-7 \
debian-8 \
opensuse-13 \
ubuntu-1204 \
ubuntu-1404
deps: bundle-install puppet-module-deps
bundle-install:
bundle install --path .vendor
puppet-module-deps:
for m in puppetlabs/apt puppetlabs/stdlib darin/zypprepo ; do \
bundle exec puppet module install --target-dir spec/fixtures/modules --force $$m ; \
done
touch spec/fixtures/manifests/site.pp
docs:
bundle exec puppet strings
lint:
bundle exec rake lint
bundle exec rake validate
# bundle exec rubocop spec Rakefile
test-unit: deps lint
bundle exec rake spec_verbose
test-acceptance: $(distros)
$(distros):
BEAKER_set=$@ bundle exec rake beaker
clean:
rm -f spec/fixtures/artifacts/logstash*
rm -f spec/fixtures/artifacts/puppet-enterprise*
rm -f files/*.deb
rm -f files/*.gem
rm -f files/*.rpm
rm -rf log
rm -rf package
release: clean docs
puppet module build