forked from liblogdb/liblogdb
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
52 lines (45 loc) · 1.33 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
language: c
os:
- osx
- linux
compiler:
- clang
- gcc
- x86_64-w64-mingw32-gcc
addons:
apt:
packages:
- valgrind
- binutils-mingw-w64
- gcc-mingw-w64
- wine
before_install:
- pip install --user cpp-coveralls
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install valgrind; 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 CFLAGS='-fprofile-arcs -ftest-coverage';
fi
script:
- make
- if [ ${CC} = gcc ] || [ "${TRAVIS_OS_NAME}" = "osx" ]; then valgrind --leak-check=full --error-exitcode=1 ./tests; fi;
- if [ "$CROSS_COMPILE" ]; then
wine tests.exe
else
make check;
fi
after_success:
- coveralls --verbose -i src -x c -e src/secp256k1 -r $TRAVIS_BUILD_DIR -b $TRAVIS_BUILD_DIR --gcov-options '\-lp'