jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5KB

  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. if [ "$TRAVIS_OS_NAME" == "osx" ]; then
  4. brew install --c++11 \
  5. pkg-config \
  6. aften \
  7. libsamplerate \
  8. libsndfile \
  9. opus \
  10. readline \
  11. doxygen
  12. # force installation of gcc-6 if required
  13. if [ "${CC}" == "gcc-6" ]; then
  14. brew install gcc@6
  15. fi
  16. # force installation of gcc-7 if required
  17. if [ "${CC}" == "gcc-7" ]; then
  18. brew install gcc@7
  19. fi
  20. # force installation of gcc-8 if required
  21. if [ "${CC}" == "gcc-8" ]; then
  22. brew install gcc@8
  23. fi
  24. fi
  25. if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  26. # autotools, automake, make are present in the trusty image
  27. sudo apt-get install -y \
  28. doxygen \
  29. libffado-dev \
  30. libsamplerate-dev \
  31. libsndfile-dev \
  32. libasound2-dev \
  33. libdb-dev \
  34. systemd-services \
  35. systemd \
  36. libsystemd-journal-dev \
  37. libsystemd-login-dev \
  38. libsystemd-id128-dev \
  39. libsystemd-daemon-dev \
  40. libpam-systemd \
  41. libdbus-1-dev \
  42. libeigen3-dev \
  43. libopus-dev \
  44. portaudio19-dev
  45. # force installation of gcc-6 if required
  46. if [ "${CC}" == "gcc-6" ]; then
  47. sudo apt-get install gcc-6 g++-6
  48. fi
  49. # force installation of gcc-7 if required
  50. if [ "${CC}" == "gcc-7" ]; then
  51. sudo apt-get install gcc-7 g++-7
  52. fi
  53. # force installation of gcc-8 if required
  54. if [ "${CC}" == "gcc-8" ]; then
  55. sudo apt-get install gcc-8 g++-8
  56. fi
  57. # force installation of clang-3.8 if required
  58. if [ "${CC}" == "clang-3.8" ]; then
  59. sudo apt-get install clang-3.8
  60. fi
  61. fi
  62. exit 0