-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.clj
36 lines (31 loc) · 1.08 KB
/
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
32
33
34
35
36
(ns build
(:refer-clojure :exclude [test])
(:require [clojure.tools.build.api :as b] ; for b/git-count-revs
[org.corfield.build :as bb]))
(def lib 'scicloj/scicloj.ml)
; alternatively, use MAJOR.MINOR.COMMITS:
;;(def version (format "0.2.%s" (b/git-count-revs nil)))
(def version "0.3")
(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 :aliases [:test-runner]
:src-dirs ["src" "template"])
(bb/run-tests)
(bb/clean)
(bb/jar)))
(defn ci-no-test "Run the CI pipeline of tests (and build the JAR)." [opts]
(-> opts
(assoc :lib lib :version version :src-dirs ["src" "template"])
(bb/clean)
(bb/jar)))
(defn install "Install the JAR locally." [opts]
(-> opts
(assoc :lib lib :version version
:src-dirs ["src" "template"])
(bb/install)))
(defn deploy "Deploy the JAR to Clojars." [opts]
(-> opts
(assoc :lib lib :version version :src-dirs ["src" "template"])
(bb/deploy)))