aboutsummaryrefslogtreecommitdiff
path: root/challenge-199/tyler-wardhaugh/clojure/build.clj
blob: 1e3dca81475cb46aca291567cf590e5ab5df5c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(ns build
  (:refer-clojure :exclude [test])
  (:require [org.corfield.build :as bb]))

(def lib 'net.clojars.c199/c199)
(def version "0.1.0-SNAPSHOT")
(def main 'c199.c199)

(defn test "Run the tests." [opts]
  (bb/run-tests opts))

(def clean bb/clean)

(defn ci "Run the CI pipeline of tests (and build the uberjar)." [opts]
  (-> opts
      (assoc :lib lib :version version :main main)
      (bb/run-tests)
      (bb/clean)
      (bb/uber)))