-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
53 lines (44 loc) · 1.43 KB
/
justfile
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
42
43
44
45
46
47
48
49
50
51
52
53
default:
@just --list
today := `date +%F`
current_version := `cat resources/LAZYTEST_VERSION | xargs`
# Set version, change all instances of <<next>> to version
@set-version version:
echo '{{version}}' > resources/LAZYTEST_VERSION
fd '.(clj|edn|md)' . -x sd '<<next>>' '{{version}}' {}
sd '{{current_version}}' '{{version}}' README.md
sd '## Unreleased' '## Unreleased\n\n## {{version}}\n\nReleased `{{today}}`.' CHANGELOG.md
@gen-docs:
markdown-toc -i --maxdepth 2 README.md
# clojure -M:gen-docs
clojure-lsp:
clojure-lsp diagnostics
[no-exit-message]
test *args:
clojure -T:prep javac
clojure -M:provided:dev:test:run {{args}}
[no-exit-message]
test-all *args:
just clojure-lsp
@just test --doctests --md README.md --dir docs --dir test {{args}}
repl arg="":
clojure -T:prep javac
clojure -M:provided:dev:test{{arg}}:repl
@clojars:
env CLOJARS_USERNAME='noahtheduke' CLOJARS_PASSWORD=`cat ../clojars.txt` clojure -M:clein deploy
# Builds the uberjar, builds the jar, sends the jar to clojars
@release version:
echo 'Running tests'
just test-all
echo 'Setting new version {{version}}'
just set-version {{version}}
echo 'Commit and tag'
git commit -a -m 'Bump version for release'
git tag v{{version}}
echo 'Pushing to github'
git push
git push --tags
echo 'Building uber'
clojure -M:clein uberjar
echo 'Deploying to clojars'
just clojars