This commit is contained in:
Jannis Redmann 2019-08-27 12:01:48 +00:00 committed by GitHub
commit 07ef1e10af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions

15
.travis.yml Normal file
View File

@ -0,0 +1,15 @@
language: c
os:
- linux
- osx
env:
- HOMEBREW_NO_INSTALL_CLEANUP=true
install:
- if [ $TRAVIS_OS_NAME == 'linux' ]; then ./install-dependencies-linux.sh; fi
- if [ $TRAVIS_OS_NAME == 'osx' ]; then ./install-dependencies-macos.sh; fi
script:
- autoreconf -i
- if [ $TRAVIS_OS_NAME == 'linux' ]; then ./configure; fi
- if [ $TRAVIS_OS_NAME == 'osx' ]; then ./configure --without-alsa --without-pulseaudio; fi
- make
- ./src/minimodem --benchmarks

8
install-dependencies-linux.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
set -x
set -o pipefail
sudo apt update
sudo apt install libsndfile1-dev fftw3-dev libasound2-dev libpulse-dev
sudo apt install pkg-config automake

7
install-dependencies-macos.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -x
set -o pipefail
brew install libsndfile fftw
brew install automake || brew upgrade automake