travis_linux_before_install.sh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. set -ev
  3. if [ -z ${DOCKER+x} ]; then
  4. # Only on non-docker builds required
  5. echo "=== Installing from external package sources ===" && echo -en 'travis_fold:start:before_install.external\\r'
  6. if [ "$CC" = "clang" ]; then
  7. # the ubuntu repo has a somehow broken clang-3.9 compiler. We want to use the one from the llvm repo
  8. # See https://github.com/openssl/openssl/commit/404c76f4ee1dc51c0d200e2b60a6340aadb44e38
  9. sudo cp .travis-apt-pin.preferences /etc/apt/preferences.d/no-ubuntu-clang
  10. curl -sSL "http://apt.llvm.org/llvm-snapshot.gpg.key" | sudo -E apt-key add -
  11. echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee -a /etc/apt/sources.list > /dev/null
  12. sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
  13. sudo -E apt-get -yq update
  14. sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-3.9 clang-tidy-3.9 libfuzzer-3.9-dev
  15. fi
  16. sudo add-apt-repository -y ppa:lttng/ppa
  17. sudo apt-get update -qq
  18. sudo apt-get install -y liburcu4 liburcu-dev
  19. echo -en 'travis_fold:end:script.before_install.external\\r'
  20. echo "=== Installing python packages ===" && echo -en 'travis_fold:start:before_install.python\\r'
  21. pip install --user cpp-coveralls
  22. pip install --user sphinx
  23. pip install --user sphinx_rtd_theme
  24. echo -en 'travis_fold:end:script.before_install.python\\r'
  25. echo "=== Installed versions are ===" && echo -en 'travis_fold:start:before_install.versions\\r'
  26. clang --version
  27. g++ --version
  28. cppcheck --version
  29. valgrind --version
  30. echo -en 'travis_fold:end:script.before_install.versions\\r'
  31. fi