-
Notifications
You must be signed in to change notification settings - Fork 43
/
.travis.yml
153 lines (143 loc) · 4.31 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
language: c
sudo: false
_packages:
- &i386-packages
apt:
packages:
- gcc-multilib
- &arm-packages
apt:
packages:
- qemu-user
- gcc-arm-linux-gnueabihf
- libc6-dev-armhf-cross
- &aarch64-packages
apt:
packages:
- qemu-user
- gcc-aarch64-linux-gnu
- libc6-dev-arm64-cross
_environments:
- &i386-env
- TOOLCHAIN=gcc-i686
- &i386-darwin-env
- TOOLCHAIN=gcc-darwin-i686
- &arm-env
- ARCH=arm
- TARGET=linux-gnueabihf
- TOOLCHAIN=gcc-generic
- CMAKE_OPTS=-DUSE_QEMU=ON
- &aarch64-env
- ARCH=aarch64
- TARGET=linux-gnu
- TOOLCHAIN=gcc-generic
- CMAKE_OPTS=-DUSE_QEMU=ON
- &coverity-key
secure: "L/VOabxezhZm26zaNQN0KjIvNukSzkxdC3bgMZ6ZIA0WUP5WcyqxNTfrlM0SpN04Mu5NReItJDCFGSWcqqkuRVs1Va6xIdsTtmiM0xLeQWOx2s0bwpaxt+2jJ7RlBjVNRrkR5DnJTL5uOztEyxYIYkJc9rswWFDJjBKqcdlXzEE3m6m4hUSoSAoq58EvjAc8CKYMvbLIcN/b77ZGc/IhblrDfI6rxmCA7xq2tDXFSk48snhFQ5NeF3KeQxNH6jxxt4rVU6LLlC85E/YRH9GXu1uxW4O7Vf5bmznpYnGoBwAR7y3IeJp5n2xM8vghD+QPd/94Xy/vYn3gFT0pk/evO8vEgO9Vs3Jj+CyO19m2C+a0hGjukL/97rrtyCNaDtWTzVTjCbWJHqXk1D8W267xywxLggCDN+hu/wnBGqXmwYp4wtXONZaE/aBU6mvHHWonq/8n7q7Sg8OVNMSGyI1MP1zATkX2SzX2fKafRk0G8cj2T98xHk+zNnguvCAFucvaefCr+J9wt+XhI3zjGVO3wdcQztrL3gLefNFEJCiiMAd/aap+siFLpVKfbMEyQmHBe0KiAZobrRcuVz7wroc8EEItszhGcv+Y/Ezre1k30FDVRslUOo420xpZIB0YfwkqE1+sW/9V875Gm4IPhEteY7uPIxlUlWAV3xNvFKnPImM="
matrix:
include:
# Linux
# x86_64
- env: CONFIGURATION=Debug
compiler: gcc
- env: CONFIGURATION=Release
compiler: gcc
- env: CONFIGURATION=RelWithDebInfo
compiler: gcc
# i386
- env: [CONFIGURATION=Debug, *i386-env]
addons: *i386-packages
compiler: gcc
- env: [CONFIGURATION=Release, *i386-env]
addons: *i386-packages
compiler: gcc
- env: [CONFIGURATION=RelWithDebInfo, *i386-env]
addons: *i386-packages
compiler: gcc
# ARM
- env: [CONFIGURATION=Debug, *arm-env]
addons: *arm-packages
compiler: gcc
- env: [CONFIGURATION=Release, *arm-env]
addons: *arm-packages
compiler: gcc
- env: [CONFIGURATION=RelWithDebInfo, *arm-env]
addons: *arm-packages
compiler: gcc
# AArch64
- env: [CONFIGURATION=Debug, *aarch64-env]
sudo: required
dist: trusty
addons: *aarch64-packages
compiler: gcc
- env: [CONFIGURATION=Release, *aarch64-env]
sudo: required
dist: trusty
addons: *aarch64-packages
compiler: gcc
- env: [CONFIGURATION=RelWithDebInfo, *aarch64-env]
sudo: required
dist: trusty
addons: *aarch64-packages
compiler: gcc
# OS X
# x86_64
- env: CONFIGURATION=Debug
os: osx
compiler: clang
- env: CONFIGURATION=Release
os: osx
compiler: clang
- env: CONFIGURATION=RelWithDebInfo
os: osx
compiler: clang
- env: [CONFIGURATION=Debug, *i386-darwin-env]
os: osx
compiler: clang
- env: [CONFIGURATION=Release, *i386-darwin-env]
os: osx
compiler: clang
- env: [CONFIGURATION=RelWithDebInfo, *i386-darwin-env]
os: osx
compiler: clang
# Coverity scan, when applicable
- compiler: gcc
env: [*coverity-key]
allow_failures:
- env: [*coverity-key]
before_install:
- if [ -z "${TARGET}" ]; then export TARGET=${ARCH}; fi
- if [ -n "${SUDO_PKG}" ]; then sudo apt-get install -qq ${SUDO_PKG}; fi
script:
- mkdir -p build && cd $_
- |
if [ -n "${TOOLCHAIN}" ]; then
TC_FILE="../.cmake/Toolchains/Toolchain-${TOOLCHAIN}.cmake"
if [ -n "${ARCH}" ]; then
export CMAKE_OPTS="${CMAKE_OPTS} -DARCH=${ARCH}"
export CMAKE_OPTS="${CMAKE_OPTS} -DTARGET=${TARGET}"
fi
export CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_TOOLCHAIN_FILE=${TC_FILE}"
fi
- >
cmake
-Wno-dev
-DCMAKE_BUILD_TYPE=${CONFIGURATION}
-DCMAKE_INSTALL_PREFIX=mimick-${TRAVIS_TAG}
-DCMAKE_C_FLAGS="-Werror"
${CMAKE_OPTS}
..
- TERM=dumb cmake --build . -- -j4
- |
if [ "${TESTS:-ON}" = "ON" ]; then
ctest
fi
addons:
coverity_scan:
project:
name: "Snaipe/Mimick"
description: "A KISS, cross-platform C Mocking library"
notification_email: [email protected]
build_command_prepend: "cmake ."
build_command: "make -j4"
branch_pattern: coverity_scan