Skip to content

Commit 7e13a57

Browse files
Merge pull request #225 from juergenhoetzel/fix-travis
Travis: Fix CI
2 parents 14ae882 + 65c8f68 commit 7e13a57

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

.travis.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: emacs-lisp
33
# See https://github.com/travis-ci/travis-ci/issues/9061
44
# and https://github.com/moby/moby/issues/22801
55
sudo: required
6-
dist: trusty
6+
dist: bionic
77
cache:
88
- directories:
99
# Cache stable Emacs binaries (saves 1min per job)
@@ -13,26 +13,27 @@ cache:
1313
matrix:
1414
fast_finish: true
1515
allow_failures:
16-
- env: EMACS_VERSION=snapshot
16+
- env: EMACS_VERSION=emacs-snapshot
1717
env:
18-
- EMACS_VERSION=25.1
19-
- EMACS_VERSION=25.2
20-
- EMACS_VERSION=25.3
21-
- EMACS_VERSION=26.1
22-
- EMACS_VERSION=snapshot
18+
- EMACS_VERSION=emacs26
19+
- EMACS_VERSION=emacs-snapshot
2320

2421
before_install:
22+
# Emacs kelleyk PPA
23+
- sudo add-apt-repository -y ppa:kelleyk/emacs
24+
- sudo apt-get update
25+
- sudo apt install $EMACS_VERSION-nox
2526
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
26-
- wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
27+
- wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
28+
- sudo dpkg -i packages-microsoft-prod.deb
2729
- sudo apt-get update
2830
- sudo apt-get install apt-transport-https
29-
- sudo apt-get update
30-
- sudo apt-get install dotnet-sdk-2.2
31+
- sudo apt-get install dotnet-sdk-2.1
3132
- export PATH="$HOME/bin:$PATH"
33+
- export EMACS=$EMACS_VERSION
3234
# Download the makefile to emacs-travis.mk
3335
- wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk'
3436
# Install Emacs (according to $EMACS_VERSION) and Cask
35-
- make -f emacs-travis.mk install_emacs
3637
- make -f emacs-travis.mk install_cask
3738
- travis_retry sudo apt-get install -y fsharp
3839

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ build: elpa version
2121
version:
2222
$(EMACS) --version
2323

24-
test: version build test/eglot-tests.el
24+
test/Test1/project.assets.json:
25+
dotnet restore test/Test1
26+
27+
test: version build test/eglot-tests.el test/Test1/project.assets.json
2528
$(CASK) exec buttercup -L . -L ./test
2629

2730
clean:

test/Test1/Test1.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.2</TargetFramework>
5+
<TargetFramework>netcoreapp2.1</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

test/integration-tests.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
(expect (file-exists-p (eglot-fsharp--path-to-server)) :to-be t))
3535
(it "is enabled on F# Files"
3636
(with-current-buffer (eglot--find-file-noselect "test/Test1/FileTwo.fs")
37-
(eglot--tests-connect 10)
37+
(eglot--tests-connect 30)
3838
(expect (type-of (eglot--current-server-or-lose)) :to-be 'eglot-fsautocomplete)))
3939
(it "provides completion"
4040
(with-current-buffer (eglot--find-file-noselect "test/Test1/FileTwo.fs")
@@ -45,7 +45,7 @@
4545
(delete-char -3)
4646
;; ERROR in fsautocomplet.exe? Should block instead of "no type check results"
4747
(eglot--sniffing (:server-notifications s-notifs)
48-
(eglot--wait-for (s-notifs 10)
48+
(eglot--wait-for (s-notifs 90)
4949
(&key _id method &allow-other-keys)
5050
(string= method "textDocument/publishDiagnostics")))
5151
(completion-at-point)

0 commit comments

Comments
 (0)