forked from hunspell/hunspell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.07 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
language: cpp
compiler:
- clang
- gcc
sudo: false
os:
- linux
- osx
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install gettext;
brew link gettext --force;
fi
# Don't use real gcc on OS X, problems arise when
# Hunspell built with gcc is linked with cppunit built with clang.
# Homebrew builds are build with clang
before_script:
- if [ "$CXX" = "g++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then
export CXX="g++-5" CC="gcc-5";
fi
script:
- autoreconf -i && ./configure && make && make check
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then autoreconf -i -I /usr/local/share/aclocal && ./configure && make && make check; fi
# might be needed for future
after_failure:
- cat tests/hun2/test-suite.log
- cat tests/v1cmdline/test-suite.log
- cat tests/test-suite.log
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- autoconf
- automake
- autopoint
- gcc-5
- g++-5
- libboost-locale-dev
- libboost-system-dev