diff options
| author | Erik Martin-Dorel | 2020-04-16 17:34:41 +0200 |
|---|---|---|
| committer | Erik Martin-Dorel | 2020-04-16 17:34:41 +0200 |
| commit | 234d9761212b3e70d538de9704a6bcd29ea684c8 (patch) | |
| tree | 3a125589ad24ecf0be169105b6e631e447c008ad /ci | |
| parent | b04949d2c36a1e19c9eb748dd9c342523edf08e5 (diff) | |
chore: Add init-tests.el
* Taken from https://github.com/pfitaxel/learn-ocaml.el/blob/master/tests/init-tests.el
(under license MIT)
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/init-tests.el | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ci/init-tests.el b/ci/init-tests.el new file mode 100644 index 00000000..565df976 --- /dev/null +++ b/ci/init-tests.el @@ -0,0 +1,34 @@ +;;; init-tests.el --- tests init file -*- coding: utf-8; lexical-binding: t; -*- + +;;; Commentary: +;; +;; Load this file to setup MELPA and tests-related packages. +;; + +;;; Code: + +;; Setup MELPA +(require 'package) +(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) + (not (gnutls-available-p)))) + (proto (if no-ssl "http" "https"))) + (add-to-list 'package-archives + (cons "melpa" (concat proto "://melpa.org/packages/")) t)) +(package-initialize) + +;; Optionally: bootstrap use-package for declarative package specs +;(unless (package-installed-p 'use-package) +;(package-refresh-contents) +;(package-install 'use-package)) +;(eval-when-compile +; (require 'use-package)) + +;; Bootstrap ert-async +(unless (package-installed-p 'ert-async) + (package-refresh-contents) + (package-install 'ert-async)) +(eval-when-compile + (require 'ert-async)) + +(provide 'init-tests) +;;; init-tests.el ends here |
