Skip to content

Commit ae395aa

Browse files
authored
Merge pull request #450 from jcs-PR/ci
Improve CI process
2 parents 41ef124 + 3d0eeeb commit ae395aa

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ build:
2828
unix-compile:
2929
@$(CASK) $(EMACS) -Q --batch \
3030
-L . \
31-
--eval '(setq byte-compile-error-on-warn t treemacs-no-load-time-warnings t)' \
31+
--eval '(setq treemacs-no-load-time-warnings t)' \
32+
--eval '(setq byte-compile-error-on-warn t)' \
3233
-f batch-byte-compile $(DAP-GENERAL) $(DAP-CLIENTS)
3334

3435
windows-compile:
3536
@$(CASK) $(EMACS) -Q --batch \
37+
--eval '(setq emacs-lsp-ci t)' \
3638
-l test/windows-bootstrap.el \
3739
-L . \
38-
--eval '(setq byte-compile-error-on-warn t treemacs-no-load-time-warnings t)' \
40+
--eval '(setq treemacs-no-load-time-warnings t)' \
41+
--eval '(setq byte-compile-error-on-warn t)' \
3942
-f batch-byte-compile $(DAP-GENERAL) $(DAP-CLIENTS)
4043

4144
unix-ci: clean build unix-compile unix-test
@@ -51,6 +54,7 @@ unix-test:
5154

5255
windows-test:
5356
@$(EMACS) -Q --batch \
57+
--eval '(setq emacs-lsp-ci t)' \
5458
-l test/windows-bootstrap.el \
5559
-L . \
5660
$(LOAD-TEST-FILES) \

test/windows-bootstrap.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@
3838

3939
(mapc (lambda (pkg)
4040
(unless (package-installed-p pkg)
41-
(package-install pkg)))
41+
(package-refresh-contents) (package-install pkg)))
4242
pkgs)
4343

4444
(add-hook 'kill-emacs-hook
45-
`(lambda () (delete-directory ,user-emacs-directory t))))
45+
`(lambda ()
46+
(unless (boundp 'emacs-lsp-ci)
47+
(delete-directory ,user-emacs-directory t)))))
4648

4749
;;; windows-bootstrap.el ends here

0 commit comments

Comments
 (0)