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

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

[elpa] externals/realgud 00902c3 03/72: Try using cask


From: Stefan Monnier
Subject: [elpa] externals/realgud 00902c3 03/72: Try using cask
Date: Fri, 26 Mar 2021 22:49:03 -0400 (EDT)

branch: externals/realgud
commit 00902c3705c80038ebead508237be10ba8e8c63b
Author: rocky <rocky@gnu.org>
Commit: rocky <rocky@gnu.org>

    Try using cask
---
 .travis.yml            | 13 +++++--------
 realgud/common/file.el |  2 +-
 run-travis-ci.sh       | 21 +++++++++++++++++++++
 travis.sh              | 24 ++++++++++++++++++++++++
 4 files changed, 51 insertions(+), 9 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 0515aa0..18e25c8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,16 +1,13 @@
 language: emacs-lisp
+sudo: no
 
 env:
-  - EMACS=emacs24
+ - EVM_EMACS=emacs-26.1-travis
 
+# Install EVM, version EVM_EMACS
 install:
-  - if [ "$EMACS" = 'emacs24' ]; then
-      sudo add-apt-repository -y ppa:cassou/emacs &&
-      sudo apt-get -qq update &&
-      sudo apt-get -qq -f install &&
-      sudo apt-get -qq install emacs24 emacs24-el;
-    fi
+  - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > 
travis.sh && source ./travis.sh
 
 # run the tests
 script:
-  - NO_CHECK_EMACS_PACKAGES=1 /bin/bash ./autogen.sh && cd test && make 
check-elget
+  - ./run-travis-ci.sh
diff --git a/realgud/common/file.el b/realgud/common/file.el
index ffaeb91..a542e89 100644
--- a/realgud/common/file.el
+++ b/realgud/common/file.el
@@ -30,7 +30,7 @@
 (declare-function realgud-cmdbuf-filename-remap-alist=     
'realgud-buffer-command)
 (declare-function realgud-cmdbuf-mutex                     
'realgud-buffer-command)
 
-(defcustom realgud-file-find-function 'realgud:find-file
+(defcustom realgud-file-find-function 'compilation-find-file
 ;;(defcustom realgud-file-find-function 'compilation-find-file
   "Function to call when we can't easily find file"
   :type 'function
diff --git a/run-travis-ci.sh b/run-travis-ci.sh
new file mode 100755
index 0000000..12411bc
--- /dev/null
+++ b/run-travis-ci.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+cd "$(dirname "$0")"
+
+set_default () {
+  eval "
+if [ -z \$$1 ]; then
+  $1=$2
+fi
+"
+}
+
+set_default EMACS "$(which emacs)"
+
+echo "*** Emacs version ***"
+echo "EMACS =" $(which $EMACS)
+$EMACS --version
+echo
+
+cask
+NO_CHECK_EMACS_PACKAGES=1 /bin/bash ./autogen.sh && cd test && make check-elget
diff --git a/travis.sh b/travis.sh
new file mode 100644
index 0000000..b1570c2
--- /dev/null
+++ b/travis.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# This script will setup Evm (Emacs Version Manager) and Cask on
+# Travis to use for Emacs Lisp testing.
+#
+# In .travis.yml, add this:
+#
+#  - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > 
x.sh && source ./x.sh
+#
+# Emacs 24.3 is installed in the above script because Cask requires
+# Emacs 24 to be installed. Because of this, when installing other
+# environments in the .travis.yml configuration, use the --skip
+# option, for example:
+#
+#  - evm install $EVM_EMACS --use --skip
+
+export PATH="/home/travis/.evm/bin:$PATH"
+export PATH="/home/travis/.cask/bin:$PATH"
+
+git clone https://github.com/rejeep/evm.git /home/travis/.evm
+evm config path /tmp
+evm install emacs-24.3-travis --use --skip
+
+curl -fsSkL https://raw.github.com/cask/cask/master/go | python



reply via email to

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