build: stop trying to fetch rebar and build deps on each build
This commit is contained in:
parent
ed8286aff7
commit
554c4b4c3b
|
@ -68,3 +68,4 @@ apps/emqx/test/emqx_static_checks_data/master.bpapi
|
||||||
# rendered configurations
|
# rendered configurations
|
||||||
*.conf.rendered
|
*.conf.rendered
|
||||||
lux_logs/
|
lux_logs/
|
||||||
|
/.prepare
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -30,12 +30,10 @@ export REBAR_GIT_CLONE_OPTIONS += --depth=1
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: $(REBAR) $(PROFILE)
|
default: $(REBAR) $(PROFILE)
|
||||||
|
|
||||||
.PHONY: prepare
|
.prepare:
|
||||||
prepare: FORCE
|
|
||||||
@$(SCRIPTS)/git-hooks-init.sh # this is no longer needed since 5.0 but we keep it anyway
|
@$(SCRIPTS)/git-hooks-init.sh # this is no longer needed since 5.0 but we keep it anyway
|
||||||
@$(SCRIPTS)/prepare-build-deps.sh
|
@$(SCRIPTS)/prepare-build-deps.sh
|
||||||
|
@touch .prepare
|
||||||
FORCE:
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(REBAR) $(PROFILES)
|
all: $(REBAR) $(PROFILES)
|
||||||
|
@ -44,6 +42,9 @@ all: $(REBAR) $(PROFILES)
|
||||||
ensure-rebar3:
|
ensure-rebar3:
|
||||||
@$(SCRIPTS)/ensure-rebar3.sh
|
@$(SCRIPTS)/ensure-rebar3.sh
|
||||||
|
|
||||||
|
$(REBAR): .prepare
|
||||||
|
@$(SCRIPTS)/ensure-rebar3.sh
|
||||||
|
|
||||||
.PHONY: ensure-hex
|
.PHONY: ensure-hex
|
||||||
ensure-hex:
|
ensure-hex:
|
||||||
@mix local.hex --if-missing --force
|
@mix local.hex --if-missing --force
|
||||||
|
@ -60,8 +61,6 @@ ensure-mix-rebar: $(REBAR)
|
||||||
mix-deps-get: $(ELIXIR_COMMON_DEPS)
|
mix-deps-get: $(ELIXIR_COMMON_DEPS)
|
||||||
@mix deps.get
|
@mix deps.get
|
||||||
|
|
||||||
$(REBAR): prepare ensure-rebar3
|
|
||||||
|
|
||||||
.PHONY: eunit
|
.PHONY: eunit
|
||||||
eunit: $(REBAR) conf-segs
|
eunit: $(REBAR) conf-segs
|
||||||
@ENABLE_COVER_COMPILE=1 $(REBAR) eunit -v -c --cover_export_name $(PROFILE)-eunit
|
@ENABLE_COVER_COMPILE=1 $(REBAR) eunit -v -c --cover_export_name $(PROFILE)-eunit
|
||||||
|
|
Loading…
Reference in New Issue