-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
74 lines (72 loc) · 1.96 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
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2017-2019, Sven Eckelmann <[email protected]>
sudo: false
dist: xenial
language: c
compiler:
- gcc
- clang
addons:
apt:
packages:
- pkg-config
- libsdl2-dev
- libsdl2-ttf-dev
- valgrind
env:
matrix:
- CFLAGS="--coverage"
- CFLAGS="-O3"
- TESTRUN_WRAPPER='valgrind -q --error-exitcode=126 --track-origins=yes --leak-check=full' CFLAGS="-O1 -g3"
- CFLAGS="-g3 -fsanitize=undefined -fsanitize=address -fsanitize=leak"
script:
- make ${MAKE_FLAGS} clean && make ${MAKE_FLAGS} -j$(nproc) test
matrix:
include:
# test without sdl installed
- os: linux
env:
- MAKE_FLAGS="CONFIG_fft_eval_sdl=n CONFIG_fft_eval_json=y V=s"
script:
- make ${MAKE_FLAGS} clean && make ${MAKE_FLAGS} test
# windows cross-compiler
- os: linux
env:
- MXE_CPU=i686
- PATH="/usr/lib/mxe/usr/bin/:$PATH"
- MAKE_FLAGS="CROSS=${MXE_CPU}-w64-mingw32.static- V=s"
addons:
apt:
sources:
- sourceline: 'deb http://pkg.mxe.cc/repos/apt/ xenial main'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC6BF758A33A3A276'
packages:
- mxe-i686-w64-mingw32.static-gcc
- mxe-i686-w64-mingw32.static-sdl2
- mxe-i686-w64-mingw32.static-sdl2-ttf
script:
- make ${MAKE_FLAGS} clean && make ${MAKE_FLAGS}
# osx native build
- os: osx
addons:
homebrew:
packages:
- sdl2
- sdl2_ttf
update: true
env:
- MAKE_FLAGS="V=s"
script:
- make ${MAKE_FLAGS} clean && make ${MAKE_FLAGS} test
# reuse test
- os: linux
language: minimal
services:
- docker
env:
- REUSE_TEST=1
before_install:
- docker pull fsfe/reuse:latest
- docker run --name reuse -v ${TRAVIS_BUILD_DIR}:/repo fsfe/reuse /bin/sh -c "cd /repo; reuse lint"
script:
- true