forked from Microsemi/switchtec-user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.21 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
language: c
script: ./configure ${CONFIG_OPTS} && make -k W=1 ${MAKE_FLAGS}
dist: trusty
compiler: gcc
sudo: required
matrix:
include:
- os: linux
- os: linux
env:
- MATRIX_EVAL="CC=clang"
- os: linux
env:
- MATRIX_EVAL="CFLAGS=-m32 && LDFLAGS=-m32"
- os: linux
addons:
apt:
packages:
- gcc-mingw-w64-x86-64
- mingw-w64-x86-64-dev
env:
- CONFIG_OPTS="--host x86_64-w64-mingw32"
- MATRIX_EVAL="CC=x86_64-w64-mingw32-gcc"
- os: linux
addons:
apt:
packages:
- gcc-mingw-w64-i686
- mingw-w64-i686-dev
env:
- CONFIG_OPTS="--host i686-w64-mingw32"
- MATRIX_EVAL="CC=i686-w64-mingw32-gcc"
- os: linux
install:
- git clone https://git.kernel.org/pub/scm/devel/sparse/sparse.git --branch v0.5.1
- pushd sparse && make HAVE_LLVM=no && sudo make install HAVE_LLVM=no && popd
env:
- MATRIX_EVAL="CC=cgcc"
- MAKE_FLAGS="CFLAGS=-Wsparse-error CFLAGS+=-Wno-vla CFLAGS+=-Wno-old-initializer"
before_install:
- eval "${MATRIX_EVAL}"
notifications:
email:
recipients: