-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (48 loc) · 1.67 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
git:
depth: 3
language: emacs-lisp
sudo: false
matrix:
include:
- os: linux
dist: xenial
env: EVM_EMACS=emacs-26.1-travis-linux-xenial
- os: linux
dist: xenial
env: EVM_EMACS=emacs-26.2-travis-linux-xenial
- os: linux
dist: xenial
env: EVM_EMACS=emacs-26.3-travis-linux-xenial
- os: linux
dist: xenial
env: EVM_EMACS=emacs-27.1-travis-linux-xenial
- os: linux
dist: xenial
env: EVM_EMACS=emacs-git-snapshot-travis-linux-xenial
before_install:
- |
echo "Checking if a CI run is needed post commit: ${TRAVIS_COMMIT_RANGE}"
if ! git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -qvE '(\.md$)|(\.png$)|(\.pdf$)|(\.html$)|^(LICENSE)|^(docs)/'
then
echo "Only doc files were updated, not running the CI."
exit
fi
before_script:
- mv -f ../.emacs.d ~/.emacs.d
- git clone https://github.com/rejeep/evm.git /home/travis/.evm
- export PATH="/home/travis/.evm/bin:$PATH"
- evm config path /tmp
- evm install $EVM_EMACS --use --skip
script:
- ${EMACS:=emacs} --version
- echo "Attempting startup..."
- ${EMACS:=emacs} -nw --batch --eval '(progn
(defvar url-show-status)
(let ((debug-on-error t)
(url-show-status nil)
(user-emacs-directory default-directory)
(user-init-file (expand-file-name "init.el"))
(load-path (delq default-directory load-path)))
(load-file user-init-file)
(run-hooks (quote after-init-hook))))'
- echo "Startup successful"