-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (40 loc) · 1.06 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
language: C
dist: trusty
sudo: required
install:
- pip install --user cpp-coveralls
- sudo pip3 install meson
- mkdir build
- export PATH="`pwd`/build:${PATH}"
- wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip && unzip -q ninja-linux.zip -d build
script:
- meson build
- ninja -C build test
- cppcheck --error-exitcode=42 .
- echo '#!/usr/bin/env bash' > scanbuild.sh
- echo 'scan-build --status-bugs "$@"' >> scanbuild.sh
- chmod +x scanbuild.sh
- sudo cp scanbuild.sh /usr/bin/
# - SCANBUILD='scanbuild.sh' ninja scan-build -C build
after_success:
- if [ "$CODECOV_RUN" == 1 ]; then coveralls --build-root build --gcov-options '\-lp'; fi
matrix:
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
- os: linux
compiler: gcc
env:
CODECOV_RUN=1
CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
addons:
apt:
packages:
- libcairo2-dev
- libreadline-dev
- python3
- python3-pip
- cppcheck
- clang