.travis.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.5
  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. # Everything below is a Python build dep (though it depends on Python
  33. # version). We need them because pyenv builds Python.
  34. - libssl-dev
  35. - zlib1g-dev
  36. - libbz2-dev
  37. - libreadline-dev
  38. - libsqlite3-dev
  39. - wget
  40. - curl
  41. - llvm
  42. - libncurses5-dev
  43. - libncursesw5-dev
  44. cache:
  45. directories:
  46. - $HOME/.cache/pip # Python packages from pip
  47. - $HOME/.pyenv # pyenv