Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 33 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
language: csharp
language: emacs-lisp
# Emacs fails to build in container-based builds on Travis
# See https://github.com/travis-ci/travis-ci/issues/9061
# and https://github.com/moby/moby/issues/22801
sudo: required

before_install:
- sudo apt-get install -y fsharp
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
- evm install $EVM_EMACS --use --skip

env:
- EVM_EMACS=emacs-25.1-travis
- EVM_EMACS=emacs-25.2-travis

dist: trusty
cache:
- directories:
# Cache stable Emacs binaries (saves 1min per job)
- "$HOME/emacs/"
# Allow Emacs snapshot builds to fail and don’t wait for these as they can take
# a looooong time
matrix:
fast_finish: true
allow_failures:
env:
- EVM_EMACS=emacs-git-snapshot-travis
- env: EMACS_VERSION=snapshot
env:
- EMACS_VERSION=25.1
- EMACS_VERSION=25.2
- EMACS_VERSION=25.3
- EMACS_VERSION=26.0.91 PRETEST=yes
- EMACS_VERSION=snapshot

before_install:
# Add mono repo
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- echo "deb http://download.mono-project.com/repo/ubuntu stable-trusty main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
- sudo apt-get -qq update
- sudo apt-get install -y mono-devel
# Configure $PATH: Executables are installed to $HOME/bin
- export PATH="$HOME/bin:$PATH"
# Download the makefile to emacs-travis.mk
- wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk'
# Install Emacs (according to $EMACS_VERSION) and Cask
- make -f emacs-travis.mk install_emacs
- make -f emacs-travis.mk install_cask
- sudo apt-get install -y fsharp mono-xbuild

script:
- make test-all
7 changes: 2 additions & 5 deletions fsharp-mode-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ If FILENAME is not a Tramp filename return FILENAME"
When completion process is not started on a remote location return FILE.
This function should always be evaluated in the process-buffer!"
(if (tramp-tramp-file-p default-directory)
(with-parsed-tramp-file-name default-directory nil
(tramp-make-tramp-file-name method user host file))
(concat (file-remote-p default-directory) file)
file))

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

(defun fsharp-ac--configure-proc ()
(let* ((fsac (if (tramp-tramp-file-p default-directory)
(with-parsed-tramp-file-name default-directory nil
(tramp-make-tramp-file-name
method user host (car (last fsharp-ac-complete-command))))
(concat (file-remote-p default-directory) (car (last fsharp-ac-complete-command)))
(car (last fsharp-ac-complete-command))))
(process-environment
(if (null fsharp-ac-using-mono)
Expand Down