-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
36 lines (30 loc) · 946 Bytes
/
.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
language: c
compiler:
- gcc
addons:
homebrew:
update: yes
packages:
- autoconf automake gettext gcc guile lzip pkg-config readline texinfo
apt:
packages:
- autopoint gettext libreadline-dev texinfo wget
jobs:
include:
- os: linux
name: Ubuntu
dist: bionic
- os: osx
name: macOS
env:
- GETTEXT_EVAL="PATH=/usr/local/opt/gettext/bin:$PATH"
osx_image: xcode9.4
before_install:
# if macOS then add autopoint/gettext path to the PATH variable
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then eval "${GETTEXT_EVAL}" ; fi
before_script:
# if macOS then LDFLAGS & CPPFLAGS for readline
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CPPFLAGS="-I/usr/local/opt/readline/include";
export LDFLAGS="-L/usr/local/opt/readline/lib"; fi
# run the tests
script: autoreconf -i && ./configure && make po-update && (cd doc && make stamp-1 stamp-vti) && make && make check