Add lib tests
This commit is contained in:
parent
51af94f70b
commit
2c7a938621
5 changed files with 25 additions and 4 deletions
|
|
@ -115,8 +115,7 @@ jobs:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: |
|
command: |
|
||||||
script/test
|
script/test
|
||||||
script/clj_http_lite_test
|
script/run_lib_tests
|
||||||
script/deps_clj_test
|
|
||||||
# - run:
|
# - run:
|
||||||
# name: Performance report
|
# name: Performance report
|
||||||
# command: |
|
# command: |
|
||||||
|
|
@ -180,8 +179,7 @@ jobs:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: |
|
command: |
|
||||||
script/test
|
script/test
|
||||||
script/clj_http_lite_test
|
script/run_lib_tests
|
||||||
script/deps_clj_test
|
|
||||||
# - run:
|
# - run:
|
||||||
# name: Performance report
|
# name: Performance report
|
||||||
# command: |
|
# command: |
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
export BABASHKA_CLASSPATH=$(clojure -Sdeps '{:deps {clj-http-lite {:git/url "https://github.com/borkdude/clj-http-lite" :sha "f44ebe45446f0f44f2b73761d102af3da6d0a13e"}}}' -Spath)
|
export BABASHKA_CLASSPATH=$(clojure -Sdeps '{:deps {clj-http-lite {:git/url "https://github.com/borkdude/clj-http-lite" :sha "f44ebe45446f0f44f2b73761d102af3da6d0a13e"}}}' -Spath)
|
||||||
|
|
||||||
./bb -e "
|
./bb -e "
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
curl -sL https://raw.githubusercontent.com/borkdude/deps.clj/master/deps.clj -o deps_test.clj
|
curl -sL https://raw.githubusercontent.com/borkdude/deps.clj/master/deps.clj -o deps_test.clj
|
||||||
chmod +x deps_test.clj
|
chmod +x deps_test.clj
|
||||||
./bb deps_test.clj -Sdescribe
|
./bb deps_test.clj -Sdescribe
|
||||||
rm deps_test.clj
|
rm deps_test.clj
|
||||||
|
|
||||||
11
script/lib_tests/spartan_spec_test
Executable file
11
script/lib_tests/spartan_spec_test
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
export BABASHKA_CLASSPATH=$(clojure -Sdeps '{:deps {spartan.spec {:git/url "https://github.com/borkdude/spartan.spec" :sha "16f7eec4b6589c77c96c9fcf989f78fffcee7c4c"}}}' -Spath)
|
||||||
|
|
||||||
|
./bb -e "
|
||||||
|
(require '[spartan.spec :as s])
|
||||||
|
(s/explain (s/cat :i int? :s string?) [1 :foo])
|
||||||
|
(s/conform (s/cat :i int? :s string?) [1 \"foo\"])
|
||||||
|
"
|
||||||
7
script/run_lib_tests
Executable file
7
script/run_lib_tests
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
script/lib_tests/clj_http_lite_test
|
||||||
|
script/lib_tests/deps_clj_test
|
||||||
|
script/lib_tests/spartan_spec_test
|
||||||
Loading…
Reference in a new issue