Skip to content

Commit 04e4b49

Browse files
committed
Add .travis.yml
1 parent 67f4832 commit 04e4b49

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: generic
2+
3+
env:
4+
matrix:
5+
- EMACS=emacs23
6+
- EMACS=emacs24
7+
- EMACS=emacs-snapshot
8+
9+
install:
10+
- if [ "$EMACS" = 'emacs23' ]; then
11+
sudo apt-get -qq update &&
12+
sudo apt-get -qq -f install &&
13+
sudo apt-get -qq install emacs23-gtk emacs23-el;
14+
fi
15+
- if [ "$EMACS" = 'emacs24' ]; then
16+
sudo add-apt-repository -y ppa:cassou/emacs &&
17+
sudo apt-get -qq update &&
18+
sudo apt-get -qq -f install &&
19+
sudo apt-get -qq install emacs24 emacs24-el;
20+
fi
21+
- if [ "$EMACS" = 'emacs-snapshot' ]; then
22+
sudo add-apt-repository -y ppa:ubuntu-elisp/ppa &&
23+
sudo apt-get -qq update &&
24+
sudo apt-get -qq -f install &&
25+
sudo apt-get -qq install emacs-snapshot &&
26+
sudo apt-get -qq install emacs-snapshot-el;
27+
fi
28+
29+
# Emacs 23 does not come with ERT. Download it and have emacs find it
30+
before_script:
31+
- if [ "$EMACS" = 'emacs23' ]; then
32+
curl -Os https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el &&
33+
export EMACSLOADPATH=$(emacs -batch -eval "(princ (mapconcat 'identity load-path \":\"))") &&
34+
export EMACSLOADPATH="$EMACSLOADPATH:$PWD";
35+
fi
36+
37+
script:
38+
- ./run_rust_emacs_tests.sh
39+
40+
notifications:
41+
email: false

0 commit comments

Comments
 (0)