forked from emacs-lsp/lsp-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (66 loc) · 1.74 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
54
55
56
57
58
59
60
61
62
63
64
65
66
sudo: required
language: emacs-lisp
dist: trusty
services:
- docker
cache:
- directories:
- "$HOME/emacs/"
matrix:
fast_finish: true
allow_failures:
- env: EMACS_VERSION=snapshot
env:
- EMACS_VERSION=25.1
- EMACS_VERSION=25.2
- EMACS_VERSION=25.3
- EMACS_VERSION=26.1
- EMACS_VERSION=26.2
- EMACS_VERSION=snapshot
before_install:
- export PATH="$HOME/bin:$PATH"
- wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk'
- make -f emacs-travis.mk install_gnutls install_emacs
- make -f emacs-travis.mk install_cask
- docker pull asciidoctor/docker-asciidoctor
- |
case $EMACS_VERSION in
25.*) EMACS_GNUPGHOME=.cask/$EMACS_VERSION/elpa/gnupg ;;
*) EMACS_GNUPGHOME=$HOME/.emacs.d/elpa/gnupg ;;
esac
mkdir -p "$EMACS_GNUPGHOME"
chmod 700 "$EMACS_GNUPGHOME"
wget 'https://git.savannah.gnu.org/cgit/emacs.git/plain/etc/package-keyring.gpg'
gpg --homedir "$EMACS_GNUPGHOME" --import package-keyring.gpg
install:
- cask install
- sudo pip install python-language-server
script:
- cask build
- cask clean-elc
- cask exec ert-runner -t '!no-win'
- |
if (( ${EMACS_VERSION:0:2} < 26 )); then
cask exec ecukes
fi
- docker run -v $TRAVIS_BUILD_DIR:/src/ asciidoctor/docker-asciidoctor make -C /src/ docs
after_success:
- bash <(curl -s https://codecov.io/bash
- cp -R doc/output/ output/
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/3c80316cc2101deff8ce
on_success: change
on_failure: always
on_start: never
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
keep_history: true
on:
branch: master
condition: $EMACS_VERSION = 25.3
target_branch: gh-pages
local_dir: output