travis_linux_before_install.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. set -ev
  3. if ! [ -z ${FUZZER+x} ]; then
  4. # we need libfuzzer 5.0, all the older versions do not work on travis.
  5. sudo apt-get --yes install git
  6. git clone https://github.com/google/fuzzer-test-suite.git FTS
  7. ./FTS/tutorial/install-deps.sh # Get deps
  8. ./FTS/tutorial/install-clang.sh # Get fresh clang binaries
  9. # Get libFuzzer sources and build it
  10. svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer
  11. Fuzzer/build.sh
  12. exit 0
  13. fi
  14. if [ -z ${DOCKER+x} ]; then
  15. # Only on non-docker builds required
  16. echo "=== Installing from external package sources ===" && echo -en 'travis_fold:start:before_install.external\\r'
  17. sudo add-apt-repository -y ppa:lttng/ppa
  18. sudo apt-get update -qq
  19. sudo apt-get install -y liburcu4 liburcu-dev
  20. echo -en 'travis_fold:end:script.before_install.external\\r'
  21. echo "=== Installing python packages ===" && echo -en 'travis_fold:start:before_install.python\\r'
  22. pip install --user cpp-coveralls
  23. pip install --user sphinx
  24. pip install --user sphinx_rtd_theme
  25. echo -en 'travis_fold:end:script.before_install.python\\r'
  26. echo "=== Installed versions are ===" && echo -en 'travis_fold:start:before_install.versions\\r'
  27. clang --version
  28. g++ --version
  29. cppcheck --version
  30. valgrind --version
  31. echo -en 'travis_fold:end:script.before_install.versions\\r'
  32. fi