-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.clj
31 lines (24 loc) · 817 Bytes
/
build.clj
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
(ns build
(:refer-clojure :exclude [test])
(:require [org.corfield.build :as bb]))
(def lib 'net.clojars.john/dispacio)
(def version "0.1.0-alpha.4")
;; clojure -T:build ci
;; clojure -T:build deploy
(def url "https://github.com/johnmn3/dispacio")
(def scm {:url url
:connection "scm:git:git://github.com/johnmn3/dispacio.git"
:developerConnection "scm:git:ssh://git@github.com/johnmn3/dispacio.git"
:tag version})
(defn test "Run the tests." [opts]
(bb/run-tests opts))
(defn ci "Run the CI pipeline of tests (and build the JAR)." [opts]
(-> opts
(assoc :lib lib :version version :scm scm)
(bb/run-tests)
(bb/clean)
(bb/jar)))
(defn deploy "Deploy the JAR to Clojars." [opts]
(-> opts
(assoc :lib lib :version version)
(bb/deploy)))