File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 95
95
:out
96
96
str/trim)
97
97
98
+ test-jar {:doc " Tests current jar"
99
+ :task (do
100
+ (println (str " Testing jar: 'clerk-" (t/version ) " .jar'" ))
101
+ (clojure (str " -Sforce -Srepro -Sdeps '"
102
+ (pr-str {:aliases {:test-jar {:jvm-opts [" -Dclojure.main.report=stdout" ]
103
+ :deps {'io.github.nextjournal/clerk {:local/root (str " ./target/clerk-" (t/version ) " .jar" )}}
104
+ :exec-fn 'nextjournal.clerk/build!
105
+ :exec-args {:paths [" notebooks/hello.clj" ]}}}})
106
+ " ' -T:test-jar" )))}
107
+
98
108
ci:publish {:doc " Publish task which will be run on CI"
99
109
:depends [-current-tag -current-branch]
100
110
:task (do
101
111
(prn :current-tag -current-tag)
102
112
(prn :current-branch -current-branch)
103
113
(if (and -current-tag (= " main" -current-branch))
104
114
(do
115
+ (println " Building jar" )
116
+ (clojure " -T:build jar" )
117
+ (run 'test-jar)
105
118
(println " Deploying to clojars" )
106
119
(clojure " -T:build deploy" ))
107
120
; ; still build jar with updated commit count for artifact upload
108
121
(do
109
122
(run 'update-meta)
110
- (run 'jar))))}
123
+ (run 'jar)
124
+ (run 'test-jar))))}
111
125
112
126
uninstall-git-hooks {:doc " Uninstall git hooks we installed previously and no longer need"
113
127
:task (fs/delete-if-exists " .git/hooks/pre-commit" )}
Original file line number Diff line number Diff line change 55
55
:class-dir class-dir}))
56
56
57
57
(defn deploy [opts]
58
- (jar opts)
59
58
(try ((requiring-resolve 'deps-deploy.deps-deploy/deploy)
60
59
(merge {:installer :remote
61
60
:artifact jar-file
You can’t perform that action at this time.
0 commit comments