-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb.edn
45 lines (39 loc) · 1.93 KB
/
bb.edn
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
37
38
39
40
41
42
43
44
45
{:paths ["scripts"]
:deps {org.babashka/cli {:mvn/version "0.2.23"}}
:tasks
{:requires [[babashka.cli :as cli]
[tasks :as t]
publish]
publish
{:doc "Usage: bb publish [--dry]"
:task (t/publish!
(cli/parse-opts *command-line-args* {:restrict [:dry]}))}
package-pre-release
{:doc "Usage: bb package-pre-release <branch> [--dry]"
:task (t/package-pre-release!
(cli/parse-opts *command-line-args* {:restrict [:branch :dry]
:require [:branch]
:args->opts [:branch]}))}
ci:release-notes
{:doc "Get release notes for <version>"
:task (t/print-release-notes!
(cli/parse-opts *command-line-args* {:require [:version]
:validate {:version
(fn [v]
(re-matches
(re-pattern "v\\d+\\.\\d+\\.\\d+")
v))}
:args->opts [:version]}))}
ci:bump-version-and-push
{:doc "Usage: bb bump-version <email> <user-name> [--dry] [--force]"
:task (t/bump-version!
(cli/parse-opts *command-line-args* {:restrict [:email :user-name :dry :force]
:require [:email :user-name]
:args->opts [:email :user-name]}))}
run-e2e-tests-ws
{:doc "Run end-to-end tests using working directory"
:task t/run-e2e-tests-from-working-dir!}
run-e2e-tests-vsix
{:doc "Run end-to-end tests using <vsix>"
:task (t/run-e2e-tests-with-vsix! (cli/parse-opts *command-line-args* {:require [:vsix]
:args->opts [:vsix]}))}}}