workaround for emacs-26.1 travis

Delete the org-plus-contrib dependency in Cask via a fast switcheroo
in install-cask.sh
This commit is contained in:
dickmao 2018-10-12 18:49:50 -04:00
parent d796a830d9
commit 0ae0a2f4d4
5 changed files with 17 additions and 11 deletions

View file

@ -20,6 +20,7 @@ env:
- PATH=$HOME/local/bin:$HOME/local/evm/bin:$HOME/local/cask/bin:$PATH
matrix:
- EVM_EMACS=emacs-25.2-travis EL_REQUEST_BACKEND=curl
- EVM_EMACS=emacs-26.1-travis EL_REQUEST_BACKEND=curl
matrix:
allow_failures:

3
Cask
View file

@ -14,8 +14,7 @@
(depends-on "cl-generic")
(depends-on "company")
(depends-on "ess")
;; (depends-on "org" "9.0") ;; doesn't work
(depends-on "org-plus-contrib" "9.0.0") ;; see https://github.com/cask/cask/issues/119
(depends-on "org-plus-contrib") ;; see https://github.com/cask/cask/issues/119
(depends-on "markdown-mode")
(depends-on "smartrep")
(depends-on "ert-runner")

View file

@ -48,6 +48,7 @@ Scenario: Collapse doesn't break undo
And I undo again
Then the cursor should be at point "55"
@prob
Scenario: Test the conflagrative commands
Given I enable "ein:worksheet-enable-undo"
Given new default notebook
@ -61,24 +62,22 @@ Scenario: Test the conflagrative commands
And I press "C-<up>"
And I press "C-<up>"
And I press "C-n"
And I type "print("math imported")"
And I type "print("m")"
And I wait for cell to execute
And I press "C-u C-c C-v"
And I press "C-/"
Then the cursor should be at point "43"
And I undo again
Then the cursor should be at point "22"
And I undo again
And I dump buffer
Then the cursor should be at point "83"
And I press "C-c C-v"
And I press "C-/"
And I undo again
Then the cursor should be at point "43"
Then the cursor should be at point "22"
And I press "C-c C-S-l"
And I press "C-/"
And I undo again
And I undo again
And I undo again
Then the cursor should be at point "22"
Scenario: Clear output doesn't break undo

View file

@ -49,7 +49,7 @@
(ert-deftest ein:filename-translations-from-to-tramp ()
;; I really don't understand this https://github.com/magit/with-editor/issues/29
:expected-result (if (search " 26." (emacs-version)) :failed :passed)
:expected-result (if (>= emacs-major-version 26) :failed :passed)
(loop with ein:filename-translations =
`((8888 . ,(ein:tramp-create-filename-translator "HOST" "USER")))
with filename = "/file/name"
@ -61,7 +61,7 @@
filename))))
(ert-deftest ein:filename-translations-to-from-tramp ()
:expected-result (if (search " 26." (emacs-version)) :failed :passed)
:expected-result (if (>= emacs-major-version 26) :failed :passed)
(loop with ein:filename-translations =
`((8888 . ,(ein:tramp-create-filename-translator "HOST" "USER")))
with filename = "/USER@HOST:/filename"
@ -72,7 +72,7 @@
filename))))
(ert-deftest ein:filename-to-python-tramp ()
:expected-result (if (search " 26." (emacs-version)) :failed :passed)
:expected-result (if (>= emacs-major-version 26) :failed :passed)
(let* ((port 8888)
(ein:filename-translations
`((,port . ,(ein:tramp-create-filename-translator "DUMMY")))))
@ -86,7 +86,7 @@
(should-error (ein:filename-to-python port "/file/name"))))
(ert-deftest ein:filename-from-python-tramp ()
:expected-result (if (search " 26." (emacs-version)) :failed :passed)
:expected-result (if (>= emacs-major-version 26) :failed :passed)
(loop with ein:filename-translations =
`((8888 . ,(ein:tramp-create-filename-translator "HOST" "USER")))
with python-filename = "/file/name"

View file

@ -16,6 +16,13 @@ cask_upgrade_cask_or_reset() {
}
cask_install_or_reset() {
if [ $(cask eval "(princ emacs-major-version)") -gt "25" ]; then
echo "!!!! ALERT WORKAROUND !!!!"
set -x
grep -v "org-plus-contrib" ./Cask > ./Cask.tmp
mv ./Cask.tmp ./Cask
set +x
fi
cask install || { rm -rf .cask && false; }
}