dev/provisioning/modules/elasticsearch/Makefile
changeset 406 cf0f23803a53
equal deleted inserted replaced
405:f239c8c5bb94 406:cf0f23803a53
       
     1 DISTRO ?= ubuntu-server-1404-x64
       
     2 PE ?= false
       
     3 STRICT_VARIABLES ?= yes
       
     4 
       
     5 ifeq ($(PE), true)
       
     6 	PE_VER ?= 3.8.6
       
     7 	BEAKER_PE_VER := $(PE_VER)
       
     8 	BEAKER_IS_PE := $(PE)
       
     9 	export BEAKER_PE_VER
       
    10 	export BEAKER_IS_PE
       
    11 endif
       
    12 
       
    13 .DEFAULT_GOAL := .vendor
       
    14 
       
    15 .vendor: Gemfile
       
    16 	bundle update || true
       
    17 	bundle install --path .vendor
       
    18 	touch .vendor
       
    19 
       
    20 .PHONY: clean
       
    21 clean:
       
    22 	bundle exec rake spec_clean
       
    23 	bundle exec rake artifacts:clean
       
    24 	rm -rf .bundle .vendor
       
    25 
       
    26 .PHONY: clean-logs
       
    27 clean-logs:
       
    28 	rm -rf log
       
    29 
       
    30 .PHONY: release
       
    31 release: clean-logs
       
    32 	bundle exec puppet module build
       
    33 
       
    34 .PHONY: test-intake
       
    35 test-intake: test-docs test-rspec
       
    36 
       
    37 .PHONY: test-acceptance
       
    38 test-acceptance: .vendor
       
    39 	BEAKER_PE_DIR=spec/fixtures/artifacts \
       
    40 		BEAKER_set=$(DISTRO) \
       
    41 		bundle exec rake beaker:acceptance
       
    42 
       
    43 .PHONY: test-integration
       
    44 test-integration: .vendor
       
    45 	BEAKER_PE_DIR=spec/fixtures/artifacts \
       
    46 		BEAKER_PE_VER=$(PE_VER) \
       
    47 		BEAKER_IS_PE=$(PE) \
       
    48 		BEAKER_set=$(DISTRO) \
       
    49 		bundle exec rake beaker:integration
       
    50 
       
    51 .PHONY: test-docs
       
    52 test-docs: .vendor
       
    53 	bundle exec rake spec_docs
       
    54 
       
    55 .PHONY: test-rspec
       
    56 test-rspec: .vendor
       
    57 	bundle exec rake lint
       
    58 	bundle exec rake validate
       
    59 	STRICT_VARIABLES=$(STRICT_VARIABLES) \
       
    60 		bundle exec rake spec_unit