forked from bbc/audiowaveform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (24 loc) · 863 Bytes
/
.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
language: cpp
compiler: gcc
os:
- linux
- osx
env:
matrix:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
before_install:
# Linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y git-core make cmake gcc g++ libmad0-dev libsndfile1-dev libgd2-xpm-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev; fi
# OSX
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install cmake libmad libsndfile gd; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install boost --with-c++11; fi
# Common
- wget https://googlemock.googlecode.com/files/gmock-1.7.0.zip && unzip gmock-1.7.0.zip && mv gmock-1.7.0 gmock
before_script:
- mkdir build && cd build
- cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE ..
script:
- make
- ./audiowaveform_tests