Skip to content

Commit 1309c29

Browse files
Merge pull request #163 from juergenhoetzel/master
Use emacs-travis.mk instead of deprecated evm
2 parents 78dbc58 + 29d1c08 commit 1309c29

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

.travis.yml

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,40 @@
1-
language: csharp
1+
language: emacs-lisp
2+
# Emacs fails to build in container-based builds on Travis
3+
# See https://github.com/travis-ci/travis-ci/issues/9061
4+
# and https://github.com/moby/moby/issues/22801
25
sudo: required
3-
4-
before_install:
5-
- sudo apt-get install -y fsharp
6-
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
7-
- evm install $EVM_EMACS --use --skip
8-
9-
env:
10-
- EVM_EMACS=emacs-25.1-travis
11-
- EVM_EMACS=emacs-25.2-travis
12-
6+
dist: trusty
7+
cache:
8+
- directories:
9+
# Cache stable Emacs binaries (saves 1min per job)
10+
- "$HOME/emacs/"
11+
# Allow Emacs snapshot builds to fail and don’t wait for these as they can take
12+
# a looooong time
1313
matrix:
1414
fast_finish: true
1515
allow_failures:
16-
env:
17-
- EVM_EMACS=emacs-git-snapshot-travis
16+
- env: EMACS_VERSION=snapshot
17+
env:
18+
- EMACS_VERSION=25.1
19+
- EMACS_VERSION=25.2
20+
- EMACS_VERSION=25.3
21+
- EMACS_VERSION=26.0.91 PRETEST=yes
22+
- EMACS_VERSION=snapshot
23+
24+
before_install:
25+
# Add mono repo
26+
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
27+
- echo "deb http://download.mono-project.com/repo/ubuntu stable-trusty main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
28+
- sudo apt-get -qq update
29+
- sudo apt-get install -y mono-devel
30+
# Configure $PATH: Executables are installed to $HOME/bin
31+
- export PATH="$HOME/bin:$PATH"
32+
# Download the makefile to emacs-travis.mk
33+
- wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk'
34+
# Install Emacs (according to $EMACS_VERSION) and Cask
35+
- make -f emacs-travis.mk install_emacs
36+
- make -f emacs-travis.mk install_cask
37+
- sudo apt-get install -y fsharp mono-xbuild
1838

1939
script:
2040
- make test-all

fsharp-mode-completion.el

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ If FILENAME is not a Tramp filename return FILENAME"
207207
When completion process is not started on a remote location return FILE.
208208
This function should always be evaluated in the process-buffer!"
209209
(if (tramp-tramp-file-p default-directory)
210-
(with-parsed-tramp-file-name default-directory nil
211-
(tramp-make-tramp-file-name method user host file))
210+
(concat (file-remote-p default-directory) file)
212211
file))
213212

214213
;;; ----------------------------------------------------------------------------
@@ -337,9 +336,7 @@ If HOST is nil, check process on local system."
337336

338337
(defun fsharp-ac--configure-proc ()
339338
(let* ((fsac (if (tramp-tramp-file-p default-directory)
340-
(with-parsed-tramp-file-name default-directory nil
341-
(tramp-make-tramp-file-name
342-
method user host (car (last fsharp-ac-complete-command))))
339+
(concat (file-remote-p default-directory) (car (last fsharp-ac-complete-command)))
343340
(car (last fsharp-ac-complete-command))))
344341
(process-environment
345342
(if (null fsharp-ac-using-mono)

0 commit comments

Comments
 (0)