travis_linux_before_install.sh 1.1 KB

123456789101112131415161718192021222324252627282930
  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. wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
  7. echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee -a /etc/apt/sources.list
  8. sudo add-apt-repository -y ppa:lttng/ppa
  9. sudo apt-get update -qq
  10. sudo apt-get install -y clang-3.9 clang-tidy-3.9
  11. sudo apt-get install -y liburcu4 liburcu-dev
  12. echo -en 'travis_fold:end:script.before_install.external\\r'
  13. echo "=== Installing python packages ===" && echo -en 'travis_fold:start:before_install.python\\r'
  14. pip install --user cpp-coveralls
  15. pip install --user sphinx
  16. pip install --user sphinx_rtd_theme
  17. echo -en 'travis_fold:end:script.before_install.python\\r'
  18. echo "=== Installed versions are ===" && echo -en 'travis_fold:start:before_install.versions\\r'
  19. clang --version
  20. g++ --version
  21. cppcheck --version
  22. valgrind --version
  23. echo -en 'travis_fold:end:script.before_install.versions\\r'
  24. fi