diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ba3917a --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/install-dependencies-linux.sh b/install-dependencies-linux.sh index 5dd073d..3e4c60f 100755 --- a/install-dependencies-linux.sh +++ b/install-dependencies-linux.sh @@ -3,5 +3,6 @@ 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 diff --git a/install-dependencies-macos.sh b/install-dependencies-macos.sh index 0e43c46..bf4a049 100755 --- a/install-dependencies-macos.sh +++ b/install-dependencies-macos.sh @@ -4,4 +4,4 @@ set -x set -o pipefail brew install libsndfile fftw -brew install automake +brew install automake || brew upgrade automake