Skip to content

Commit

Permalink
Update travis configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Jun 27, 2019
1 parent 72a22ba commit 93909f5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
language: clojure
lein: lein
sudo: false
sudo: required

cache:
directories:
- $HOME/.m2

install:
- curl -O https://download.clojure.org/install/linux-install-1.10.1.447.sh
- chmod +x linux-install-1.10.1.447.sh
- sudo ./linux-install-1.10.1.447.sh

addons:
postgresql: 9.3
postgresql: 9.6

services:
- postgresql
Expand All @@ -19,11 +27,7 @@ branches:
- master

script:
- lein test-all
- clojure -Adev:test

notifications:
email:
recipients:
- [email protected]
on_success: change
on_failure: change
email: false
4 changes: 1 addition & 3 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
:repl {:main-opts ["-m" "rebel-readline.main"]}
:ancient {:main-opts ["-m" "deps-ancient.deps-ancient"]
:extra-deps {deps-ancient {:mvn/version "RELEASE"}}}

:test {:extra-deps {lambdaisland/kaocha {:mvn/version "0.0-521"}}
:main-opts ["-m" "kaocha.runner"]}
:test {:main-opts ["-m" "user"]}
}}


Expand Down
8 changes: 8 additions & 0 deletions test/user.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@
(do (require (symbol sns))
(test/test-vars [(resolve o)]))
(test/test-ns o)))))

(defn -main
[& args]
(let [{:keys [fail]} (run-test)]
(if (pos? fail)
(System/exit fail)
(System/exit 0))))

0 comments on commit 93909f5

Please sign in to comment.