forked from theonestack/cfhighlander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 822 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
.EXPORT_ALL_VARIABLES:
RUN_RUBY_CMD=docker-compose run --rm -v $$PWD:/src -w /src ruby
CFHL_DOCKER_TAG ?= $(shell cat lib/cfhighlander.version.rb | grep VERSION | cut -d '=' -f 2 | sed 's/\.freeze//' | sed 's/"//g')
all: clean build test
clean:
rm -f *.gem
docker-compose down
.PHONY: clean
build:
$(RUN_RUBY_CMD) make _build
.PHONY: clean
rubyShell:
$(RUN_RUBY_CMD) bash
.PHONY: rubyShell
test:
$(RUN_RUBY_CMD) make _test
.PHONY: test
buildDocker:
docker build -t theonestack/cfhighlander:$(CFHL_DOCKER_TAG) -t theonestack/cfhighlander:latest .
pushDocker: buildDocker
docker push theonestack/cfhighlander:$(CFHL_DOCKER_TAG)
_build:
gem build cfhighlander.gemspec
_local_install:
gem install cfhighlander-*.gem
_test:
gem install bundler:2.0.1
bundle install
cfndsl -u 7.1.0
bundle exec rspec