Browse Source

.ci/install-deps.sh: Install script for dependencies.

pull/384/head
David Runge 7 years ago
parent
commit
6c67b17aef
1 changed files with 43 additions and 0 deletions
  1. +43
    -0
      .ci/install-deps.sh

+ 43
- 0
.ci/install-deps.sh View File

@@ -0,0 +1,43 @@
#!/usr/bin/env bash

set -euo pipefail

if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew install --c++11 \
pkg-config \
aften \
libsamplerate \
libsndfile \
opus \
readline \
doxygen
fi

if [ "$TRAVIS_OS_NAME" == "linux" ]; then
# autotools, automake, make are present in the trusty image
sudo apt-get install -y \
celt \
libffado-dev \
libsamplerate-dev \
libsndfile-dev \
libasound2-dev \
doxygen
# force installation of gcc-6 if required
if [ "${CC}" == "gcc-6" ]; then
sudo apt-get install gcc-6 g++-6
fi
# force installation of gcc-7 if required
if [ "${CC}" == "gcc-7" ]; then
sudo apt-get install gcc-7 g++-7
fi
# force installation of gcc-8 if required
if [ "${CC}" == "gcc-8" ]; then
sudo apt-get install gcc-8 g++-8
fi
# force installation of clang-3.8 if required
if [ "${CC}" == "clang-3.8" ]; then
sudo apt-get install clang-3.8
fi
fi

exit 0

Loading…
Cancel
Save