aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Martin-Dorel2020-04-16 17:34:41 +0200
committerErik Martin-Dorel2020-04-16 17:34:41 +0200
commit234d9761212b3e70d538de9704a6bcd29ea684c8 (patch)
tree3a125589ad24ecf0be169105b6e631e447c008ad
parentb04949d2c36a1e19c9eb748dd9c342523edf08e5 (diff)
chore: Add init-tests.el
* Taken from https://github.com/pfitaxel/learn-ocaml.el/blob/master/tests/init-tests.el (under license MIT)
-rw-r--r--ci/init-tests.el34
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