.travis.yml 1.3 KB

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