-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (48 loc) · 1.27 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
DISTRO ?= ubuntu-server-1404-x64
GRAPHDB_VERSION ?= 8.6.0
GRAPHDB_TIMEOUT ?= 120
PUPPET_VERSION ?= 3.8.5
DEBUG ?= false
.vendor: Gemfile
bundle update || true
bundle install --path .vendor
touch .vendor
.PHONY: clean
clean:
bundle exec rake spec_clean
rm -rf .bundle .vendor junit
.PHONY: clean-logs
clean-logs:
rm -rf log
.PHONY: release
release: clean-logs clean
bundle exec rake module:clean
bundle exec rake module:bump_commit:$(RELEASE_TYPE)
git push origin HEAD:master
bundle exec puppet module build
bundle exec rake module:tag
git push --tags
BLACKSMITH_FORGE_USERNAME=$(BLACKSMITH_FORGE_USERNAME) \
BLACKSMITH_FORGE_PASSWORD=$(BLACKSMITH_FORGE_PASSWORD) \
bundle exec rake module:push
.PHONY: test-acceptance
test-acceptance: .vendor
GRAPHDB_VERSION=$(GRAPHDB_VERSION) \
GRAPHDB_TIMEOUT=$(GRAPHDB_TIMEOUT) \
GRAPHDB_DOWNLOAD_USER=$(GRAPHDB_DOWNLOAD_USER) \
GRAPHDB_DOWNLOAD_PASSWORD=$(GRAPHDB_DOWNLOAD_PASSWORD) \
PUPPET_VERSION=$(PUPPET_VERSION) \
BEAKER_set=$(DISTRO) \
DEBUG=$(DEBUG) \
bundle exec rspec spec/acceptance
.PHONY: test-rspec
test-rspec: .vendor
bundle exec rake lint
bundle exec rake validate
bundle exec rake spec
.PHONY: guard
guard: .vendor
bundle exec guard
.PHONY: coverage
coverage: .vendor
COVERAGE=true bundle exec rake spec