Skip to content

Commit fad843b

Browse files
Use emacs-travis.mk instead of deprecated evm
Also add emacs-26-pretest and emacs-snapshot to build matrix.
1 parent 78dbc58 commit fad843b

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
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

0 commit comments

Comments
 (0)