Merge remote-tracking branch 'upstream/master' into osx_fixes

pull/5/head
Mark Jessop 2019-04-21 08:49:22 +09:30
commit aed7d02fbf
1 changed files with 34 additions and 0 deletions

34
.travis.yml 100644
View File

@ -0,0 +1,34 @@
sudo: required
language: generic
dist: xenial
addons:
apt:
packages:
libc6-i386
libspeexdsp-dev
libsamplerate0-dev
sox
git
install:
- export CODEC2DIR=${PWD}/codec2
- export LPCNETDIR=${PWD}
- export BUILDDIR=${PWD}/build_linux
script:
# First build and install vanilla codec2 as we need -lcodec2 to build LPCNet
- git clone https://github.com/drowe67/codec2.git
- cd codec2 && git checkout brad-2020
- mkdir build_linux && cd build_linux && cmake .. && make VERBOSE=1 codec2
# OK, build and test LPCNet
- cd $LPCNETDIR && mkdir -p $BUILDDIR && cd $BUILDDIR
- cmake -DCODEC2_BUILD_DIR=$CODEC2DIR/build_linux .. && make VERBOSE=1
- cd src && sox ../../wav/wia.wav -t raw -r 16000 - | ./lpcnet_enc -s | ./lpcnet_dec -s > /dev/null
# Re-build codec2 with LPCNet and test FreeDV 2020 support
- cd $CODEC2DIR/build_linux
- make clean
- cmake -DLPCNET_BUILD_DIR=$BUILDDIR ..
- make VERBOSE=1
- cd src
- ./freedv_tx 2020 $LPCNETDIR/wav/wia.wav - | ./freedv_rx 2020 - /dev/null