forked from emacs-w3m/emacs-w3m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (118 loc) · 3.87 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# .travis.yml for emacs-w3m (http://github.com/emacs-w3m/emacs-w3m/)
## cache could be a time-saver for
## + apel/flim for all emacsen
## + but how to do it?
#cache:
# - directories:
# - "$HOME/emacs/"
matrix:
include:
- os: linux
dist: xenial
env: EMACS=emacs26
- os: linux
dist: xenial
env: EMACS=emacs27
- os: linux
dist: xenial
env: EMACS=emacs-snapshot
- os: osx
osx_image: xcode10.1
env: EMACS=emacs26
- os: osx
osx_image: xcode10.1
env: EMACS=emacs27
- os: osx
osx_image: xcode10.1
env: EMACS=emacs-snapshot
# - os: osx
# osx_image: xcode10.1
# env: EMACS=aquamacs
allow_failures:
- os: osx
# - os: linux
# dist: xenial
# env: EMACS=emacs27
# - os: osx
# osx_image: xcode10.1
# env: EMACS=emacs27
# - os: osx
# osx_image: xcode10.1
# env: EMACS=emacs-snapshot
## - env: EMACS=aquamacs
install:
- if [ "$TRAVIS_OS_NAME--${EMACS}" = 'linux--emacs26' ]; then
export EMACS_EXE=emacs26;
sudo add-apt-repository -y ppa:kelleyk/emacs &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qq install emacs26 emacs26-el;
fi
- if [ "$TRAVIS_OS_NAME--${EMACS}" = 'linux--emacs27' ]; then
export EMACS_EXE=emacs27;
sudo add-apt-repository -y ppa:kelleyk/emacs &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qq install emacs27 emacs27-el;
fi
- if [ "$TRAVIS_OS_NAME--${EMACS}" = 'linux--emacs-snapshot' ]; then
export EMACS_EXE=emacs-snapshot;
sudo add-apt-repository -y ppa:ubuntu-elisp/ppa &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qq install emacs-snapshot emacs-snapshot-el;
fi
- if [ "$TRAVIS_OS_NAME--${EMACS}" = 'osx--emacs26' ]; then
export EMACS_EXE=emacs26;
brew install w3m &&
wget https://emacsformacosx.com/emacs-builds/Emacs-26.3-universal.dmg &&
hdiutil attach Emacs-26.3-universal.dmg &&
sudo ln -s /Volumes/Emacs/Emacs.app/Contents/MacOS/Emacs /usr/local/bin/${EMACS_EXE};
fi
- if [ "$TRAVIS_OS_NAME--${EMACS}" = 'osx--emacs27' ]; then
export EMACS_EXE=emacs;
brew install emacs &&
brew install w3m;
fi
- if [ "$TRAVIS_OS_NAME--${EMACS}" = 'osx--emacs-snapshot' ]; then
export EMACS_EXE=emacs;
brew install emacs --HEAD &&
brew install w3m;
fi
# - if [ "$TRAVIS_OS_NAME--${EMACS}" = 'osx--aquamacs' ]; then
# export EMACS_EXE=aquamacs;
# download_path=$(curl -s "https://api.github.com/repos/davidswelt/aquamacs-emacs/releases/latest" | grep 'browser_' | sed 's/.* .//;s/.$//') &&
# echo "${download_path}" &&
# wget "${download_path}" &&
# hdiutil attach "$(basename ${download_path})" &&
# ls /Volumes/A* &&
# sudo ln -s /Volumes/Aquamacs/Aquamacs.app/Contents/MacOS/Aquamacs /usr/local/bin/${EMACS_EXE};
# fi
before_script:
- autoconf --version
- automake --version
- gcc --version
- make --version
- w3m -version
- echo EMACS_EXE=${EMACS_EXE}
- which ${EMACS_EXE}
- file $(which ${EMACS_EXE})
- ${EMACS_EXE} -Q --batch --eval='
(progn
(message "%s" emacs-version)
(require (quote package))
(push (cons "melpa" "http://melpa.org/packages/") package-archives)
(package-refresh-contents)
(package-initialize)
(package-install (quote apel))
(package-install (quote flim))
)' 2>&1
- export good_msg="\n\nconfiguration and make successfully completed\n\n";
- export bad_msg="\n\nconfiguration and make failed;\nattempting w3m-hack install\n\n";
script:
if autoconf && ./configure --with-emacs=${EMACS_EXE} && make ; then
printf "$good_msg";
elif [ "$TRAVIS_OS_NAME" = 'osx' ]; then
printf "$bad_msg" &&
${EMACS_EXE} -Q --batch -l w3mhack.el NONE -f w3mhack-nonunix-install ;
fi