Skip to content

Commit

Permalink
ci: install from melpa
Browse files Browse the repository at this point in the history
  • Loading branch information
mkcms committed Jun 17, 2024
1 parent be99c0f commit 68b2cb4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ jobs:

- name: Lint
run: make lint

- name: Packaging checks
run: make checkinstall
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ INSTALL_DEPENDENCIES := ${PACKAGE_INIT} --eval '(progn \
(package-install (cadr (assoc `seq package-archive-contents))) \
(package-install (cadr (assoc `eldoc package-archive-contents)))))'
INSTALL_FROM_MELPA := ${PACKAGE_INIT} --eval '(progn \
(unless (package-installed-p `compiler-explorer) \
(add-to-list `package-archives \
(quote ("melpa" . "https://melpa.org/packages/"))) \
(package-refresh-contents) \
(package-install `compiler-explorer)))'
# Sexp to fill paragraphs in the commentary section.
FILL_COMMENTARY := --eval '(progn \
(delete-trailing-whitespace) \
Expand Down Expand Up @@ -52,6 +59,9 @@ check: ${ELC}
-L . -l compiler-explorer -l compiler-explorer-test \
--eval '(ert-run-tests-batch-and-exit "${SELECTOR}")'
checkinstall:
${emacs} -Q --batch ${PACKAGE_INIT} ${INSTALL_FROM_MELPA}
lint:
file=$$(mktemp) \
&& ${emacs} -Q --batch compiler-explorer.el \
Expand Down

0 comments on commit 68b2cb4

Please sign in to comment.