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

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

[nongnu] elpa/prop-menu 0b38577 6/9: Initial Travis setup


From: ELPA Syncer
Subject: [nongnu] elpa/prop-menu 0b38577 6/9: Initial Travis setup
Date: Sun, 29 Aug 2021 11:29:15 -0400 (EDT)

branch: elpa/prop-menu
commit 0b385771ecdf8ce14d709a97511a639f224db888
Author: David Raymond Christiansen <david@davidchristiansen.dk>
Commit: David Raymond Christiansen <david@davidchristiansen.dk>

    Initial Travis setup
---
 .travis.yml        | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 Makefile           | 23 +++++++++++++++++++++++
 prop-menu-tests.el | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 109 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9d7872a
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,51 @@
+language: emacs-lisp
+sudo: false
+
+cache:
+  directories:
+    - $HOME/emacs-24.3
+    - $HOME/emacs-24.4
+    - $HOME/emacs-24.5
+
+before_install:
+  # Emacs 24.3
+  - wget http://ftpmirror.gnu.org/emacs/emacs-24.3.tar.xz
+  - tar -xf emacs-24.3.tar.xz
+  - cd emacs-24.3
+  - if [ ! -e bin/emacs ]; then ./configure --prefix=$HOME/emacs-24.3 
--with-xpm=no --with-gif=no ; make ; make install ; fi
+  - cd ..
+
+  # Emacs 24.4
+  - wget http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.xz
+  - tar -xf emacs-24.4.tar.xz
+  - cd emacs-24.4
+  - if [ ! -e bin/emacs ]; then ./configure --prefix=$HOME/emacs-24.4 
--with-xpm=no --with-gif=no ; make ; make install ; fi
+  - cd ..
+
+  # Emacs 24.5
+  - wget http://ftpmirror.gnu.org/emacs/emacs-24.5.tar.xz
+  - tar -xf emacs-24.5.tar.xz
+  - cd emacs-24.5
+  - if [ ! -e bin/emacs ]; then ./configure --prefix=$HOME/emacs-24.5 
--with-xpm=no --with-gif=no ; make ; make install ; fi
+  - cd ..
+
+before_script: true
+
+script:
+  # emacs 24.3
+  - make getdeps EMACS=$HOME/emacs-24.3/bin/emacs
+  - make build EMACS=$HOME/emacs-24.3/bin/emacs
+  - make test EMACS=$HOME/emacs-24.3/bin/emacs
+  - make clean
+
+  # emacs 24.4
+  - make getdeps EMACS=$HOME/emacs-24.4/bin/emacs
+  - make build EMACS=$HOME/emacs-24.4/bin/emacs
+  - make test EMACS=$HOME/emacs-24.4/bin/emacs
+  - make clean
+
+  # emacs 24.5
+  - make getdeps EMACS=$HOME/emacs-24.5/bin/emacs
+  - make build EMACS=$HOME/emacs-24.5/bin/emacs
+  - make test EMACS=$HOME/emacs-24.5/bin/emacs
+  - make clean
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1a82d59
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+EMACS=emacs24
+
+BATCHEMACS=$(EMACS) --batch --no-site-file -q -eval '(add-to-list (quote 
load-path) "${PWD}/")' -eval '(require (quote package))' -eval '(add-to-list 
(quote package-archives) (quote ("melpa" . "http://melpa.org/packages/";)) t)' 
-eval '(package-initialize)'
+
+BYTECOMP = $(BATCHEMACS) -eval '(progn (require (quote bytecomp)) (setq 
byte-compile-warnings t) (setq byte-compile-error-on-warn t))' -f 
batch-byte-compile
+
+OBJS = prop-menu.elc
+
+.el.elc:
+       $(BYTECOMP) $<
+
+build: $(OBJS)
+
+test:
+       $(BATCHEMACS) -l ert -l prop-menu-tests.el -f 
ert-run-tests-batch-and-exit
+
+clean:
+       -rm -f $(OBJS)
+
+getdeps:
+       $(BATCHEMACS) -eval '(progn (package-refresh-contents))'
+
+.PHONY: clean build test
diff --git a/prop-menu-tests.el b/prop-menu-tests.el
new file mode 100644
index 0000000..91feb35
--- /dev/null
+++ b/prop-menu-tests.el
@@ -0,0 +1,35 @@
+;;; prop-menu-tests.el --- Tests for prop-menu       -*- lexical-binding: t; 
-*-
+
+;; Copyright (C) 2015  David Christiansen
+
+;; Author: David Christiansen <davidc@gungnir>
+;; Keywords: 
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Simple tests for prop-menu
+
+;;; Code:
+
+(require 'cl-lib)
+(require 'prop-menu)
+
+(ert-deftest trivial-test ()
+  (should t))
+
+
+(provide 'prop-menu-tests)
+;;; prop-menu-tests.el ends here



reply via email to

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