-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
57 lines (47 loc) · 1.17 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
sudo: false
git:
submodules: false
language: cpp
os:
- osx
- linux
compiler:
- clang
- gcc
- x86_64-w64-mingw32-gcc
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- valgrind
- binutils-mingw-w64
- gcc-mingw-w64
- wine
- gcc-4.8
- g++-4.8
- clang
before_install:
- pip install --user cpp-coveralls
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install valgrind gnu-sed --default-names; fi
matrix:
fast_finish:
- true
exclude:
- os: osx
compiler: x86_64-w64-mingw32-gcc
before_script:
- ./autogen.sh
- if [ "$CC" == i686-w64-mingw32-gcc ]; then
export CROSS_COMPILE=${CC%%gcc}; unset CC;
./configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
export CROSS_COMPILE=${CC%%gcc}; unset CC;
LIBTOOL_APP_LDFLAGS='-all-static' LDFLAGS='-static' ./configure --host=x86_64-w64-mingw32 --disable-shared --enable-static;
else
./configure;
fi
script:
- make