-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
50 lines (46 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
language: c
matrix:
include:
- os: linux
compiler: clang
env: EXTRA_FLAGS="-DCLANG_ADDRESS_SANITIZER=ON"
- os: linux
compiler: gcc-6
env: GCOV=gcov-6 CMAKE_FLAGS="-DUSE_COVERAGE=ON"
before_install:
# cmocka
- wget https://cmocka.org/files/1.1/cmocka-1.1.3.tar.xz
- tar -xJvf cmocka-1.1.3.tar.xz
- cd cmocka-1.1.3 && mkdir build && cd build
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
- cd ../..
- rm -rf cmocka-1.1.3
# coveralls
- pip -q install --user --upgrade cpp-coveralls
addons:
apt:
sources:
- deadsnakes
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- autoconf
- automake
- build-essential
- clang-5.0
- cmake
- g++-6-multilib
- g++-multilib
- gcc-6-multilib
- gcc-multilib
- gdb
- libc6-dev-i386
- libtool
- ninja-build
- pkg-config
- python3.7-dev
- libbsd-dev
- libhiredis-dev
before_script: redis-server redis-test.conf
script: make sb && make test && make sb-makekey && ./build/bin/sb-makekey && ./build/bin/sb-test
after_success: .ci/after_success.sh