emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/hyperbole da0c363: Test installations using different s


From: ELPA Syncer
Subject: [elpa] externals/hyperbole da0c363: Test installations using different sources (#104)
Date: Sun, 20 Jun 2021 17:57:10 -0400 (EDT)

branch: externals/hyperbole
commit da0c363a8a437a1d037c176453d06f03e59cbeac
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: GitHub <noreply@github.com>

    Test installations using different sources (#104)
---
 install-test/elpa/.emacs              | 11 +++++++++++
 install-test/local-install-test.sh    | 20 ++++++++++++++++++++
 install-test/straight/.emacs          | 26 ++++++++++++++++++++++++++
 install-test/tarball/.emacs           |  8 ++++++++
 install-test/tarball/install-local.sh |  7 +++++++
 5 files changed, 72 insertions(+)

diff --git a/install-test/elpa/.emacs b/install-test/elpa/.emacs
new file mode 100644
index 0000000..b0f0880
--- /dev/null
+++ b/install-test/elpa/.emacs
@@ -0,0 +1,11 @@
+;; .emacs
+
+(require 'package)
+(when (< emacs-major-version 27)
+  (package-initialize))
+(unless (package-installed-p 'hyperbole)
+  (package-refresh-contents)
+  (package-install 'hyperbole))
+(hyperbole-mode 1)
+
+(message "%s" "Hyperbole successfully installed")
diff --git a/install-test/local-install-test.sh 
b/install-test/local-install-test.sh
new file mode 100755
index 0000000..56c9d88
--- /dev/null
+++ b/install-test/local-install-test.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+echo *** Install test ***
+
+install_method="$1"
+
+app=/tmp/hypb-$$
+
+mkdir -p $app
+cp -a * $app
+export HOME=$app/$install_method
+
+[ -e $app/$install_method/install-local.sh ] && cd $app/$install_method && 
./install-local.sh
+
+cd $app/$install_method
+emacs --batch -l $app/$install_method/.emacs \
+      --eval '(load (expand-file-name "test/hy-test-dependencies.el" 
hyperb:dir))' \
+      -l hypb-ert \
+      --eval "(mapc #'load-file (hypb-run-ert-test-libraries))" \
+      -f ert-run-tests-batch-and-exit
diff --git a/install-test/straight/.emacs b/install-test/straight/.emacs
new file mode 100644
index 0000000..175f486
--- /dev/null
+++ b/install-test/straight/.emacs
@@ -0,0 +1,26 @@
+;; Use this in your Emacs init file to install Straight
+(progn
+  (defvar bootstrap-version)
+  (setq package-enable-at-startup nil)
+  (let ((bootstrap-file
+         (expand-file-name "straight/repos/straight.el/bootstrap.el" 
user-emacs-directory))
+        (bootstrap-version 5))
+    (unless (file-exists-p bootstrap-file)
+      (with-current-buffer
+          (url-retrieve-synchronously
+           
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el";
+           'silent 'inhibit-cookies)
+        (goto-char (point-max))
+        (eval-print-last-sexp)))
+    (load bootstrap-file nil 'nomessage)))
+
+;; Then use this to install Hyperbole
+(straight-use-package
+ '(hyperbole
+   :host nil
+   :repo "https://git.savannah.gnu.org/git/hyperbole.git";
+   :config (hyperbole-mode 1)))
+
+(hyperbole-mode 1)
+
+(message "%s" "Hyperbole successfully installed")
diff --git a/install-test/tarball/.emacs b/install-test/tarball/.emacs
new file mode 100644
index 0000000..5e8df3c
--- /dev/null
+++ b/install-test/tarball/.emacs
@@ -0,0 +1,8 @@
+;;; tarball -- hyperbole installed from a tar ball
+
+(unless (and (featurep 'hyperbole) hyperbole-mode)
+  (push (expand-file-name "hyperbole" (getenv "HOME")) load-path)
+  (require 'hyperbole)
+  (hyperbole-mode 1))
+
+(message "%s" "Hyperbole successfully installed")
diff --git a/install-test/tarball/install-local.sh 
b/install-test/tarball/install-local.sh
new file mode 100755
index 0000000..8fecdfd
--- /dev/null
+++ b/install-test/tarball/install-local.sh
@@ -0,0 +1,7 @@
+TARBALL=hyperbole-8.0.0pre0.20210605.220551
+
+curl -O https://elpa.gnu.org/devel/$TARBALL.tar
+tar -xf $TARBALL.tar
+ln -s $TARBALL hyperbole
+cd hyperbole
+make bin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]