First cut at enabling travis-ci

This commit is contained in:
Jared Szechy
2014-05-10 20:55:31 -04:00
parent ad0c849dc4
commit 68c471d639
2 changed files with 43 additions and 0 deletions

19
.travis.yml Normal file
View File

@@ -0,0 +1,19 @@
language: cpp
compiler:
- gcc
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libsndfile1-dev libfftw3-dev libapack3gf
install: ./travis_deps.sh
before_script:
- mkdir build
- cd build
- cmake ..
script:
- make
- make test

24
travis_deps.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -ex
# Install mbelib
cd /tmp
wget https://github.com/szechyjs/mbelib/archive/master.tar.gz -O /tmp/mbelib.tar.gz
tar -xzf mbelib.tar.gz
cd mbelib-master
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr
make
make install
# Install IT++ from SF
cd /tmp
wget http://sourceforge.net/projects/itpp/files/itpp/4.3.1/itpp-4.3.1.tar.gz/download -O /tmp/itpp-4.3.1.tar.gz
tar -xzf itpp-4.3.1.tar.gz
cd itpp-4.3.1
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr
make
make install