forked from hunspell/hunspell
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (41 loc) · 1.01 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
language: cpp
compiler:
- clang
- gcc
sudo: false
os:
- linux
- osx
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew --version;
HOMEBREW_NO_ENV_FILTERING=1 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/test-suite.log
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- autoconf
- automake
- autopoint
- gcc-5
- g++-5