forked from libsndfile/libsndfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (48 loc) · 1.15 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
sudo: required
language: c
matrix:
include:
- os: linux
dist: xenial
compiler: clang
addons:
apt:
packages:
- autogen
- libogg-dev
- libvorbis-dev
- libflac-dev
- libasound2-dev
- libopus-dev
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
packages:
- autogen
- libogg-dev
- libvorbis-dev
- libflac-dev
- libasound2-dev
- libopus-dev
- os: osx
compiler: clang
before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew update
brew install autogen flac libogg libvorbis opus
fi
install:
- true
script:
- mkdir cmake-build && (cd cmake-build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra" && make VERBOSE=1 && ctest -V)
- pwd
- ./autogen.sh
- |
if [[ "${CC}" == "clang" ]]; then
./configure --enable-werror && make clean all check && make distcheck
else
Scripts/asan-configure.sh --enable-werror && make clean all check && make distcheck
fi