Skip to content

Commit

Permalink
Merge pull request #33 from libmir/ShigekiKarita-test-examples
Browse files Browse the repository at this point in the history
Run examples in travis
  • Loading branch information
ShigekiKarita committed Feb 23, 2018
2 parents 66d9d4a + 8088d60 commit d45b9e6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,35 @@ matrix:
before_install:
- sudo apt-get install -qq python-numpy
- cd test && python test_npy_fileio.py && cd ..
# https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo
- wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
- sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
- sudo apt-get update
- sudo apt-cache search mkl
- if [ $ARCH = "x86_64" ]; then
sudo apt-get install -qq intel-mkl-core-rt-2018.1-163;
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64:$LD_LIBRARY_PATH;
export LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64:$LIBRARY_PATH;
else
sudo apt-get install -qq intel-mkl-core-rt-32bit-2018.1-163;
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/ia32:$LD_LIBRARY_PATH;
export LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/ia32:$LIBRARY_PATH;
fi

script:
- dub test --arch "$ARCH" --build=unittest-cov
# FIXME libcurl not found in 32bit
- if [ $ARCH = "x86_64" ]; then
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz;
tar xvf ffmpeg-git-64bit-static.tar.xz;
cd ffmpeg-git*/ && export PATH=`pwd`:$PATH && cd -;
export OMP_NUM_THREADS=1;
cd example/char_rnn && dub run --arch "$ARCH" --build=release;
cd -;
cd example/audio_separation && dub run --arch "$ARCH" --build=release;
cd -;
fi
# https://github.com/vibe-d/vibe.d/blob/master/README.md#additional-setup-on-linux-debianubuntumint
- if [ $DC = dmd ] && [ $ARCH = "x86_64" ]; then sudo apt-get install -qq libevent-dev libssl-dev; fi
- if [ $DC = dmd ] && [ $ARCH = "x86_64" ]; then make doc; fi
Expand Down

0 comments on commit d45b9e6

Please sign in to comment.