diff --git a/README.md b/README.md index e646b92..e91e324 100755 --- a/README.md +++ b/README.md @@ -2,3 +2,5 @@ Clojure Sample ===================== Simple Clojure app using clojure.test framework. + +This sample is built for Shippable, a docker based continuous integration and deployment platform. diff --git a/sample/project.clj b/sample/project.clj index e0d3bf9..ed03983 100755 --- a/sample/project.clj +++ b/sample/project.clj @@ -6,4 +6,5 @@ :dependencies [[org.clojure/clojure "1.5.1"]] :main ^:skip-aot sample.core :target-path "target/%s" - :profiles {:uberjar {:aot :all}}) + :profiles {:dev {:plugins [[test2junit "1.1.1"]]}} + :test2junit-output-dir "../shippable/testresults") diff --git a/sample/test/sample/core_test.clj b/sample/test/sample/core_test.clj index 42bd560..7ff7adf 100755 --- a/sample/test/sample/core_test.clj +++ b/sample/test/sample/core_test.clj @@ -5,3 +5,6 @@ (deftest a-test (testing "Simple addition" (is (= 15 (-main 5))))) + +(deftest add-1-to-1 + (is (= 2 (+ 1 1)))) diff --git a/shippable.yml b/shippable.yml index 3bb8c40..d630c0a 100755 --- a/shippable.yml +++ b/shippable.yml @@ -12,4 +12,5 @@ before_script: # Running the test with Leiningen script: - cd sample - - lein test \ No newline at end of file + - lein test2junit +