-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 1.16 KB
/
Makefile
File metadata and controls
44 lines (32 loc) · 1.16 KB
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
ci: clean deps lint
clean:
rm -rf inspec.lock Gemfile.lock bin vendor
deps:
gem install bundler --version=1.17.3
bundle config --local path vendor/bundle
bundle install --binstubs
lint:
bundle exec inspec check .
bundle exec rubocop Gemfile controls/ libraries/
bundle exec yaml-lint .*.yml conf/*.yml
test:
bundle exec inspec exec .
test-author:
bundle exec inspec exec . --show-progress --controls=author-non-default-admin-password
test-publish:
bundle exec inspec exec . --show-progress --controls=publish-non-default-admin-password
test-publish-dispatcher:
bundle exec inspec exec . --show-progress --controls=\
publish-dispatcher-prevent-clickjacking \
publish-dispatcher-deny-administrative-urls \
publish-dispatcher-deny-vulnerable-urls \
publish-dispatcher-deny-etc-libs \
publish-dispatcher-deny-invalidate-cache
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 test test-author test-publish test-publish-dispatcher release release-major release-minor release-patch