forked from miek/inspectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 1.25 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
language: c
cache: apt
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
exclude:
# /usr/bin/gcc on OS X is clang, so it's not meaningful to build against both.
- os: osx
compiler: gcc
addons:
apt:
sources:
# - ubuntu-sdk-team
packages:
- qtbase5-dev
- qtdeclarative5-dev
- libfftw3-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# cmake and pkg-config are already installed, liquid-dsp is handled by before_script.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5 fftw; fi
before_script:
- pushd /tmp
- mkdir liquid-install
- git clone https://github.com/jgaeddert/liquid-dsp.git
- cd liquid-dsp
- ./bootstrap.sh
- ./configure --prefix=/tmp/liquid-install/
- make
- make install
- popd
script:
- mkdir build
- cd build
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_PREFIX_PATH=$(brew --prefix qt5)/lib/cmake; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then DYLIB_SUFFIX=dylib; else DYLIB_SUFFIX=so; fi
- CFLAGS="-g -Wall -Wextra -Werror -Wno-zero-length-array" cmake -DLIQUID_LIBRARIES=/tmp/liquid-install/lib/libliquid.$DYLIB_SUFFIX -DLIQUID_INCLUDES=/tmp/liquid-install/include/ ..
- make