diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..670bc0c3 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +version: 2.1 + +# Default actions to perform on each Emacs version +default: &default-steps + steps: + - checkout + - run: apt-get update && apt-get install make + - run: make elpa + - run: emacs --version + - run: make test + # Make sure to run test-checks before test-bytecomp, as test-bytecomp autogenerates + # files which won't pass test-checks. + - run: make test-checks + - run: make test-bytecomp + +# Enumerated list of Emacs versions +jobs: + test-emacs-25: + docker: + - image: silex/emacs:25-dev + entrypoint: bash + <<: *default-steps + + test-emacs-26: + docker: + - image: silex/emacs:26-dev + entrypoint: bash + <<: *default-steps + + test-emacs-master: + docker: + - image: silex/emacs:master-dev + entrypoint: bash + <<: *default-steps + +workflows: + version: 2 + ci-test-matrix: + jobs: + - test-emacs-25 + - test-emacs-26 + - test-emacs-master diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index be3656d3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -sudo: false -language: emacs-lisp -env: - - EMACS_BINARY=emacs-25.1-travis MAKE_TEST=test - - EMACS_BINARY=emacs-25.1-travis MAKE_TEST=test-bytecomp - - EMACS_BINARY=emacs-25.2-travis MAKE_TEST=test - - EMACS_BINARY=emacs-25.2-travis MAKE_TEST=test-bytecomp - - EMACS_BINARY=emacs-26.1-travis MAKE_TEST=test - - EMACS_BINARY=emacs-26.1-travis MAKE_TEST=test-bytecomp - - EMACS_BINARY=emacs-26.1-travis MAKE_TEST=test-checks - - EMACS_BINARY=emacs-git-snapshot-travis -matrix: - allow_failures: - - env: EMACS_BINARY=emacs-git-snapshot-travis - fast_finish: true -before_script: - - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh - - evm install $EMACS_BINARY --use --skip - - make elpa -script: - - emacs --version - - make $MAKE_TEST diff --git a/README.md b/README.md index a2291191..fa89c474 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![License GPL 3][badge-license]][copying] [![MELPA][melpa-badge]][melpa-package] [![MELPA Stable][melpa-stable-badge]][melpa-stable-package] -[![travis][badge-travis]][travis] +[![circleci][badge-circleci]][circleci] # Clojure Mode @@ -438,8 +438,8 @@ Distributed under the GNU General Public License; type C-h C-c to vie [melpa-package]: http://melpa.org/#/clojure-mode [melpa-stable-package]: http://stable.melpa.org/#/clojure-mode [COPYING]: http://www.gnu.org/copyleft/gpl.html -[badge-travis]: https://travis-ci.org/clojure-emacs/clojure-mode.svg?branch=master -[travis]: https://travis-ci.org/clojure-emacs/clojure-mode +[badge-circleci]: https://circleci.com/gh/clojure-emacs/clojure-mode.svg?style=svg +[circleci]: https://circleci.com/gh/clojure-emacs/clojure-mode [CIDER]: https://github.com/clojure-emacs/cider [cider-nrepl]: https://github.com/clojure-emacs/cider-nrepl [inf-clojure]: https://github.com/clojure-emacs/inf-clojure