Skip to content

Commit

Permalink
switch to use bb for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yogthos committed Nov 17, 2021
1 parent 16bb1e4 commit 9abd043
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 31 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
keys:
- v1-dependency-jars-{{ checksum "project.clj" }}
- v1-dependency-jars
- run:
name: Install Babashka
command: |
curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
chmod +x install
sudo install
- run: lein test
- save_cache:
key: v1-dependency-jars-{{ checksum "project.clj" }}
Expand Down
38 changes: 7 additions & 31 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(defproject markdown-clj "1.10.6"
(defproject markdown-clj "1.10.7"
:description "Markdown parser"
:url "https://github.com/yogthos/markdown-clj"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]
:dependencies [[org.clojure/clojure "1.10.3"]
[clj-commons/clj-yaml "0.7.107"]]
:clojurescript? true
:jar-exclusions [#"\.swp|\.swo|\.DS_Store"]
Expand All @@ -12,40 +12,16 @@
:all (constantly true)}
:auto-clean false

:aliases {"test-cljs" ["doo" "rhino" "test" "once"]
:aliases {"test-cljs" ["shell" "bb" "test:cljs"]
"test" ["do" "test," "test-cljs"]
"cleantest" ["do" "clean," "test"]
"install" ["do" "clean," "install"]
"deploy" ["do" "clean," "deploy" "clojars"]}

:source-paths ["src/clj" "src/cljc" "src/cljs"]
:cljsbuild
{:builds {:main
{:source-paths ["src/cljc" "src/cljs"]
:jar true
:compiler {:output-to "demo/js/markdown.js"
:optimizations :advanced
:pretty-print false}}
:dev
{:compiler {:optimizations :whitespace
:pretty-print true}}

:test
{:source-paths ["src/cljc" "src/cljs" "test"]
:compiler {:output-to "target/unit-test.js"
:output-dir "target"
:main markdown.runner
:optimizations :whitespace}}}}
:profiles
{:demo
{}
:dev
{:dev
{:jvm-opts ["-XX:-TieredCompilation"]
:dependencies [[criterium "0.4.4" :scope "test"]
[commons-lang "2.6" :scope "test"]
[org.clojure/clojurescript "1.10.339"]
[org.mozilla/rhino "1.7.10"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-doo "0.1.10"]]}}
:doo {:build "test"
:paths {:rhino "lein run -m org.mozilla.javascript.tools.shell.Main"}})
:plugins [[lein-shell "0.4.1"]]
:dependencies [[criterium "0.4.6" :scope "test"]
[commons-lang "2.6" :scope "test"]]}})

0 comments on commit 9abd043

Please sign in to comment.