Skip to content

Commit

Permalink
Replace lein with boot completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Feb 22, 2017
1 parent 74025f3 commit e081d45
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 37 deletions.
32 changes: 23 additions & 9 deletions build.boot
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
(set-env!
:resource-paths #{"src"}
:source-paths #{"test-resources" "test"}
:dependencies '[[org.clojure/clojure "1.7.0" :scope "provided"]
[adzerk/boot-test "1.0.4" :scope "test"]])
:dependencies '[[org.clojure/clojure "1.8.0" :scope "provided"]
[metosin/boot-alt-test "0.3.0" :scope "test"]])

(require '[adzerk.boot-test :refer [test]])
(require '[metosin.boot-alt-test :refer [alt-test]])

(def +version+ "0.2.0-SNAPSHOT")

(task-options!
pom {:project 'metosin/clj-suomi
:version "0.2.0-SNAPSHOT"
:version +version+
:description "Access Finnish code sets"
:url "https://github.com/metosin/clj-suomi"
:license {"Eclipse Public License" "https://www.eclipse.org/legal/epl-v10.html"}})

(ns-unmap *ns* 'test)

(deftask test []
(alt-test))

(deftask build []
(comp
(pom)
(jar)))

(deftask dev []
(comp
(watch)
(repl :server true)
(pom)
(jar)
(watch)
(test)
(build)
(install)))

(deftask run-tests []
(test))
(deftask deploy []
(comp
(build)
(push :repo "clojars" :gpg-sign (not (.endsWith +version+ "-SNAPSHOT")))))
27 changes: 13 additions & 14 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
machine:
java:
version: oraclejdk8
general:
artifacts:
- target/coverage
environment:
BOOT_VERSION: 2.7.1
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
dependencies:
cache_directories:
- "~/.boot/cache/lib"
- "~/.boot/cache/bin"
override:
- curl -L https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh -o ~/bin/boot
- chmod +x ~/bin/boot
- mkdir -p ~/.boot
- boot test
test:
pre:
- mkdir $CIRCLE_TEST_REPORTS/lein
override:
- lein test-out junit $CIRCLE_TEST_REPORTS/lein/results.xml
- CLOVERAGE_VERSION=1.0.7-SNAPSHOT lein cloverage --codecov && bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
deployment:
master:
branch: master
commands:
- git config --global user.name "CircleCI"
- git config --global user.email "[email protected]"
- ./scripts/build-docs.sh
- echo 1
14 changes: 0 additions & 14 deletions project.clj

This file was deleted.

0 comments on commit e081d45

Please sign in to comment.