Skip to content

Commit

Permalink
fix: add lein command download logic
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed May 8, 2024
1 parent 6ff9dda commit fe62d20
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ TARGET_JAR=target/vald-client-clj-$(VERSION)-standalone.jar

TEST_DATASET_PATH = wordvecs1000.json

LEIN_PATH = ./lein

.PHONY: all
all: clean

Expand Down Expand Up @@ -57,12 +59,12 @@ profile/native-image-config: \
$(NATIVE_IMAGE_CONFIG_OUTPUT_DIR):
mkdir -p $@

lein:
$(LEIN_PATH):
curl -o lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein \
&& chmod a+x lein \
&& ./lein version

$(TARGET_JAR): src cmd
$(TARGET_JAR): $(LEIN_PATH) src cmd
lein with-profile +cmd uberjar

valdcli: $(TARGET_JAR)
Expand Down Expand Up @@ -93,7 +95,7 @@ $(VALD_DIR):

.PHONY: pom/create
## update dependencies
pom/create:
pom/create: $(LEIN_PATH)
./lein pom

.PHONY: proto
Expand Down Expand Up @@ -134,16 +136,15 @@ vald/client/version/update: $(VALD_DIR)

.PHONY: test
## Execute test
test: $(TEST_DATASET_PATH)
test: $(TEST_DATASET_PATH) $(LEIN_PATH)
./lein test

$(TEST_DATASET_PATH):
curl -L https://raw.githubusercontent.com/rinx/word2vecjson/master/data/wordvecs1000.json -o $(TEST_DATASET_PATH)

.PHONY: ci/deps/install
## install deps for CI environment
ci/deps/install:
@echo "Nothing do be done"
ci/deps/install: $(LEIN_PATH)

.PHONY: ci/deps/update
## update deps for CI environment
Expand All @@ -152,10 +153,9 @@ ci/deps/update:

.PHONY: ci/package/prepare
## prepare for publich
ci/package/prepare:
@echo "Nothing do be done"
ci/package/prepare: ci/deps/install

.PHONY: ci/package/publish
## publich packages
ci/package/publish:
@echo "Nothing do be done"
ci/package/publish: ci/deps/install
./lein deploy clojars

0 comments on commit fe62d20

Please sign in to comment.