.travis.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. language: generic
  2. sudo: false
  3. before_install:
  4. - git submodule update --init --recursive
  5. install:
  6. # source because it sets up env vars on some platforms
  7. - source ci/travis/travis_install.sh
  8. script: ./run_tests.py
  9. after_success:
  10. - codecov
  11. env:
  12. global:
  13. # Travis can run out of RAM, so we need to be careful here.
  14. - YCM_CORES=3
  15. - COVERAGE=true
  16. matrix:
  17. - YCM_PYTHON_VERSION=2.7
  18. - YCM_PYTHON_VERSION=3.4
  19. addons:
  20. apt:
  21. sources:
  22. # The Travis apt source whitelist can be found here:
  23. # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  24. - ubuntu-toolchain-r-test # for new libstdc++
  25. - george-edison55-precise-backports # for a more recent version of cmake (3.2.3)
  26. packages:
  27. - cmake-data
  28. - cmake
  29. # 4.8 is the first version of GCC with good enough C++11 support to build
  30. # ycmd.
  31. - g++-4.8
  32. - ninja-build
  33. # Everything below is a Python build dep (though it depends on Python
  34. # version). We need them because pyenv builds Python.
  35. - libssl-dev
  36. - zlib1g-dev
  37. - libbz2-dev
  38. - libreadline-dev
  39. - libsqlite3-dev
  40. - wget
  41. - curl
  42. - llvm
  43. - libncurses5-dev
  44. - libncursesw5-dev
  45. cache:
  46. directories:
  47. - $HOME/.cache/pip # Python packages from pip
  48. - $HOME/.pyenv # pyenv