Skip to content

Commit

Permalink
build config
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Aug 25, 2021
1 parent 15b51dd commit 46ab9e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ jobs:
- v1-dependencies-{{ checksum "deps.edn" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: Install Clojure
command: |
wget -nc https://download.clojure.org/install/linux-install-1.10.3.943.sh
chmod +x linux-install-1.10.3.943.sh
sudo ./linux-install-1.10.3.943.sh
- run:
name: Install bb
command: |
Expand Down
9 changes: 7 additions & 2 deletions bb.edn
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{:paths ["script"]
:tasks
{:requires ([babashka.fs :as fs])
{:requires ([babashka.fs :as fs]
[cheshire.core :as json])
:init (do (def ^:dynamic *test* (= "true" (System/getenv "NBB_TESTS")))
(defn wrap-tests [cmd]
(if *test*
Expand All @@ -25,6 +26,11 @@
(run! fs/delete (fs/glob "out" "**.map")))}
run-integration-tests nbb-tests/main

bump-version (do (shell "npm version patch")
(shell "git push")
(shell "git push origin"
(:version (json/parse-string (slurp "package.json") true))))

publish (shell "npm publish")

ci:test {:doc "Runs all tests in CI."
Expand All @@ -41,7 +47,6 @@
(run 'run-integration-tests))}

ci:publish {:doc "Publishes to npm after tests pass."
:depends [ci:test]
:task
(binding [*test* false]
(run 'release)
Expand Down

0 comments on commit 46ab9e3

Please sign in to comment.