forked from staples-sparx/kits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 821 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
.PHONY: help ? test deploy
S3_USERNAME = $(shell grep access_key ~/.s3cfg | head -n1 | awk -F ' = ' '{print $$2 }')
S3_PASSPHRASE = $(shell grep secret_key ~/.s3cfg | head -n1 | awk -F ' = ' '{print $$2}')
LEIN_ENV = S3_USERNAME="$(S3_USERNAME)" S3_PASSPHRASE="$(S3_PASSPHRASE)" HTTP_CLIENT="curl --insecure -f -L -o"
LEIN = $(LEIN_ENV) lein
all: tests
clean:
rm -rf ./m2
jar:
$(LEIN) jar
tests:
$(LEIN) test
ci: clean tests
deploy:
$(LEIN) deploy clojars
s3-deploy:
$(LEIN) deploy s3-releases
help: ?
?:
@echo
@echo "all ..................... Install all local dependencies and run tests"
@echo "tests ................... Run all tests"
@echo
@echo "ci ...................... Target for CI build"
@echo
@echo "deploy .................. Deploy Kits artifacts on Clojars.org (requires gpg signing)"