5 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
14 # force installation of gcc-6 if required
15 if [ "${CC}" == "gcc-6" ]; then
18 # force installation of gcc-7 if required
19 if [ "${CC}" == "gcc-7" ]; then
22 # force installation of gcc-8 if required
23 if [ "${CC}" == "gcc-8" ]; then
26 # force installation of gcc-9 if required
27 if [ "${CC}" == "gcc-9" ]; then
32 if [ "$TRAVIS_OS_NAME" == "linux" ]; then
33 # autotools, automake, make are present in the trusty image
34 sudo apt-get
install -y \
50 # remove everything that jack will provide
51 # (it can not be a dependency for the build)
52 # these files were dragged in by the above apt-get install of dependency packages
53 sudo
rm -rf /usr
/lib
/x86_64-linux-gnu
/libjack
*
54 sudo
rm -rf /usr
/include
/jack
*
55 sudo
rm -rf /usr
/share
/doc
/libjack
*
56 sudo
rm -rf /var
/lib
/dpkg
/info
/libjack
*
57 sudo
rm -rf /usr
/lib
/x86_64-linux-gnu
/pkgconfig
/jack.pc
58 # when these files aren't deleted: jackd will behave strange after install.
59 # one symptom: unknown option character l
62 echo "found these files with 'jack' in name after installing dependencies and clean up:"
63 echo "========================================================================="
64 locate jack |
grep -v /home
/travis
/build
65 echo "========================================================================="
67 # force installation of gcc-6 if required
68 if [ "${CC}" == "gcc-6" ]; then
69 sudo apt-get
install gcc-6 g
++-6
71 # force installation of gcc-7 if required
72 if [ "${CC}" == "gcc-7" ]; then
73 sudo apt-get
install gcc-7 g
++-7
75 # force installation of gcc-8 if required
76 if [ "${CC}" == "gcc-8" ]; then
77 sudo apt-get
install gcc-8 g
++-8
79 # force installation of gcc-9 if required
80 if [ "${CC}" == "gcc-9" ]; then
81 sudo apt-get
install gcc-9 g
++-9
83 # force installation of clang-3.5 if required
84 if [ "${CC}" == "clang-3.5" ]; then
85 sudo apt-get
install clang-3.5
87 # force installation of clang-3.8 if required
88 if [ "${CC}" == "clang-3.8" ]; then
89 sudo apt-get
install clang-3.8
91 # force installation of clang-6.0 if required
92 if [ "${CC}" == "clang-6.0" ]; then
93 sudo apt-get
install clang-6.0
95 # force installation of clang-8 if required
96 if [ "${CC}" == "clang-8" ]; then
97 sudo apt-get
install clang-8