Last active
January 29, 2020 04:16
-
-
Save olivergeorge/624b3fd8c6db7cf4d4e8c628d2cf6d90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns app.test-runner | |
(:require [clojure.test :refer [deftest is run-tests]])) | |
(deftest is-this-working? | |
(is (= 1 2))) | |
(defmethod cljs.test/report [:cljs.test/default :end-run-tests] [m] | |
(when-not (cljs.test/successful? m) | |
(throw "Test failed"))) | |
(defn -main [] | |
(run-tests)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build: | |
working_directory: ~/repo | |
docker: | |
- image: circleci/clojure:tools-deps-node | |
environment: | |
LEIN_ROOT: nbd | |
JVM_OPTS: -Xmx3200m | |
steps: | |
- checkout | |
- run: clojure -m cljs.main -re node -m app.test-runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:paths ["src" "test] | |
:deps {org.clojure/clojure {:mvn/version "1.10.1"} | |
org.clojure/clojurescript {:mvn/version "1.10.597"}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment