forked from ztellman/riddley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
33 lines (33 loc) · 1.44 KB
/
bb.edn
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
{:tasks
{compile (clojure "-T:build java-compile")
test (clojure "-X:test")
lint (clojure "-T:build lint")
deploy (clojure "-T:build deploy")
install (clojure "-T:build install")
update-documents (clojure "-T:build update-documents")
bump-major-version (clojure "-T:build bump-major-version")
bump-minor-version (clojure "-T:build bump-minor-version")
bump-patch-version (clojure "-T:build bump-patch-version")
release (do (run 'lint)
(run 'compile)
(run 'test)
(run 'install))
publish {:requires ([clojure.edn :as edn])
:task (let [version (-> (edn/read-string (slurp "build.edn")) :version)]
(run 'release)
(run 'update-documents)
(shell "git add .")
(try (shell "git diff --quiet --cached")
(catch Exception _
(shell
(str "git commit -m \"Prepared for new release \"" version))))
(shell "git push")
(shell (str "git tag -a " version " -m \"Release v\"" version))
(shell (str "git push origin " version))
(run 'deploy))}
publish-patch (do (run 'bump-patch-version)
(run 'publish))
publish-minor (do (run 'bump-minor-version)
(run 'publish))
publish-major (do (run 'bump-major-version)
(run 'publish))}}