Skip to content

Commit

Permalink
Run clj-kondo & eastwood linters as part of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
iarenaza committed Apr 20, 2022
1 parent 669975e commit 44aa420
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
language: clojure

script: lein test-$CLJ
script: ./clj-kondo --lint src --lint test && lein do "eastwood-${CLJ}", "test-${CLJ}"

before_install:
- git submodule update --init --recursive
- yes | sudo lein upgrade
- wget "https://github.com/clj-kondo/clj-kondo/releases/download/v${CLJ_KONDO_RELEASE}/clj-kondo-${CLJ_KONDO_RELEASE}-linux-static-amd64.zip" -o clj-kondo.zip
- unzip clj-kondo.zip

matrix:
include:
Expand Down
3 changes: 3 additions & 0 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"test-clj" ["with-clj" "test"]
"test-cljs" ["with-cljs" "doo" "nashorn" "test" "once"]
"test-all" ["do" "clean," "test-clj," "test-cljs"]
"eastwood-clj" ["with-clj" "eastwood"]
;; Do nothing "op", for TravisCI CI/CD pipeline
"eastwood-cljs" ["version"]
"deploy" ["do" "clean," "deploy" "clojars"]}

:jar-exclusions [#"\.swp|\.swo|\.DS_Store"]
Expand Down

0 comments on commit 44aa420

Please sign in to comment.