-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
103 lines (103 loc) · 2.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# TODO: temporary work-around permission issue with Clang sanitizers.
sudo: true
dist: trusty
language: c
env:
global:
- secure: "QI0qw+0hitEfPcGNrX8pjw7peRBlO204z7bmHWNsvg/pCkzFVsGPsMm2nijn0Ey8gn8HyRR6wD6F4i4n3NTh2D4E03TWZmNtfxWjKqmalXQmQswdkByJeC+H211MQMrcQg8MaXPNbFzFeDWWn+YIkNbYySJO8IjYNfpGwxQ51kU="
matrix:
include:
- os: linux
compiler: clang
env: BUILD_TYPE=default CFLAGS='-fsanitize=address -fsanitize=undefined -Werror'
- os: linux
compiler: clang-5.0
env: BUILD_TYPE=default CFLAGS='-fsanitize=address -fsanitize=undefined -Werror'
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
- os: linux
compiler: clang-6.0
env: BUILD_TYPE=default CFLAGS='-fsanitize=address -fsanitize=undefined -Werror'
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- clang-6.0
- os: linux
compiler: gcc
env: BUILD_TYPE=default CFLAGS='-fsanitize=address -Werror'
- os: osx
compiler: clang
env: BUILD_TYPE=default CFLAGS='-fsanitize=address -Werror'
- os: linux
compiler: clang
env: BUILD_TYPE=coverage CFLAGS='-coverage -O0 -Werror'
- os: linux
compiler: clang
env: BUILD_TYPE=coverity
- os: linux
env: BUILD_TYPE=cppcheck
addons:
apt:
packages:
- cppcheck
- os: osx
env: BUILD_TYPE=mandoc
before_install:
- |
# Don't trigger Coverity unless it's a coverity build.
if [ $BUILD_TYPE != coverity ]; then
COVERITY_SCAN_BRANCH_PATTERN='^$'
fi
# Disable all builds while submitting to Coverity.
if [ $TRAVIS_BRANCH = coverity_scan ]; then
BUILD_TYPE=unknown
fi
install:
- |
if [ $BUILD_TYPE = mandoc ]; then
brew update
brew install mandoc
fi
script:
- |
(
set -ex
case $BUILD_TYPE in
default)
./autogen.sh
./configure || (cat config.log; exit 1)
make
make distcheck || (find . -name test-suite.log | xargs -t cat; exit 1)
;;
coverage)
./autogen.sh
./configure || (cat config.log; exit 1)
make
make check || (find . -name test-suite.log | xargs -t cat; exit 1)
llvm-cov gcov pick-pick.c
bash <(curl -s https://codecov.io/bash)
;;
cppcheck)
git ls-files | grep '\.c$' | cppcheck --quiet --error-exitcode=1 --file-list=-
;;
mandoc)
mandoc -Tlint -Wstyle pick.1
;;
esac
)
addons:
coverity_scan:
project:
name: mptre/pick
description: a fuzzy search tool for the command-line
notification_email: pick-maintainers@calleerlandsson.com
build_command_prepend: ./autogen.sh; ./configure
build_command: make
branch_pattern: coverity_scan