forked from emacs-tw/awesome-emacs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (26 loc) · 1.22 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
sudo: false
language: ruby
rvm:
- 2.4
env:
global:
- CURL="curl -fsSkL --retry 9 --retry-delay 9"
install:
- EMACS_VERSION=25.3
- $CURL -O https://github.com/npostavs/emacs-travis/releases/download/bins/emacs-bin-${EMACS_VERSION}.tar.gz
- tar -xaf emacs-bin-${EMACS_VERSION}.tar.gz -C /
- export EMACS=/tmp/emacs/bin/emacs
before_script:
- gem install awesome_bot
script:
- allowed_internal_links=ternjs,melpa
- allowed_redirect_links=awesome.re
- awesome_bot README.org --allow-ssl --white-list $allowed_internal_links,$allowed_redirect_links
- cp README.org README.org.original
- $EMACS README.org -Q -nw --eval "(progn (setq package-archives '((\"melpa\" . \"https://melpa.org/packages/\"))) (package-initialize) (when (not (package-installed-p 'toc-org)) (when (not package-archive-contents) (package-refresh-contents)) (package-install 'toc-org)) (require 'toc-org) (toc-org-insert-toc) (save-buffer) (kill-emacs))"
- diff README.org README.org.original
- echo "If the README pre and post processing are identical, the diff should exit with 0. Otherwise, an error code indicates that toc-org should have been run to update the Table of Contents."
notifications:
email:
on_success: never
on_failure: never