-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.clj
33 lines (27 loc) · 827 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
32
33
(ns build
(:refer-clojure :exclude [test])
(:require [org.corfield.build :as bb]))
(def lib 'io.github.bortexz/graphcom)
(def version "0.2.0")
(defn- gha-output
[k v]
(println (str "::set-output name=" k "::" v)))
(defn test "Run the tests." [opts]
(bb/run-tests opts)
(bb/run-tests (assoc opts :aliases [:cljs-test])))
(defn ci "Run the CI pipeline of tests (and build the JAR)." [opts]
(-> opts
(assoc :lib lib :version version)
(bb/run-tests)
(bb/clean)
(assoc :src-pom "pom-template.xml")
(bb/jar)))
(defn install "Install the JAR locally." [opts]
(-> opts
(assoc :lib lib :version version)
(bb/install)))
(defn deploy "Deploy the JAR to Clojars." [opts]
(-> opts
(assoc :lib lib :version version)
(bb/deploy))
(gha-output "version" version))