Skip to content

Commit

Permalink
fix: make ci
Browse files Browse the repository at this point in the history
  • Loading branch information
U-JOHNLIU\jonhl committed Jan 7, 2022
1 parent a3223c8 commit baedb01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ ifeq ($(OS),Windows_NT)
endif

GET_DASHBOARD=$(SCRIPTS)/get-dashboard.sh
LENGTH=$#

ifeq ($(LENGTH),1)
ifeq ($1, ci)
GET_DASHBOARD=$(SCRIPTS)/pre-ci.sh
else
GET_DASHBOARD=$(SCRIPTS)/get-dashboard.sh
endif
else
GET_DASHBOARD=$(SCRIPTS)/get-dashboard.sh
endif

PROFILE ?= emqx
REL_PROFILES := emqx emqx-edge
Expand Down Expand Up @@ -171,6 +160,7 @@ $(foreach pt,$(PKG_PROFILES),$(eval $(call gen-pkg-target,$(pt))))
run: $(PROFILE) quickrun

.PHONY: ci
GET_DASHBOARD=$(SCRIPTS)/pre-ci.sh
ci: $(REBAR) $(PROFILE)

.PHONY: quickrun
Expand Down
2 changes: 1 addition & 1 deletion scripts/ensure-rebar3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
DOWNLOAD_URL='https://dgiot-dev-1306147891.cos.ap-nanjing.myqcloud.com'

download() {
curl -f -L "${DOWNLOAD_URL}/${VERSION}/rebar3" -o ./rebar3
wget ${DOWNLOAD_URL}/${VERSION}/rebar3
}

# get the version number from the second line of the escript
Expand Down

0 comments on commit baedb01

Please sign in to comment.