(ns build "HoneySQL's build script. clojure -T:build run-tests clojure -T:build run-tests :aliases '[:master]' clojure -T:build ci For more information, run: clojure -A:deps -T:build help/doc" (:require [clojure.tools.build.api :as b] [org.corfield.build :as bb])) (def lib 'com.github.seancorfield/honeysql) (def version (format "2.0.%s" (b/git-count-revs nil))) (defn readme "Run the README tests." [opts] (-> opts (bb/run-task [:readme]))) (defn eastwood "Run Eastwood." [opts] (-> opts (bb/run-task [:eastwood]))) (defn ci "Run the CI pipeline of tests (and build the JAR)." [opts] (-> opts (assoc :lib lib :version version) (readme) (eastwood) (as-> opts (reduce (fn [opts alias] (bb/run-tests (assoc opts :aliases [alias]))) opts [:cljs :1.9 :1.10 :master])) (bb/clean) (bb/jar))) (defn deploy "Deploy the JAR to Clojars." [opts] (-> opts (assoc :lib lib :version version) (bb/deploy)))