2015-11-08 15:21:30 -05:00
|
|
|
language: generic
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
sudo: false
|
2014-05-15 22:03:29 -04:00
|
|
|
before_install:
|
|
|
|
- git submodule update --init --recursive
|
2013-04-27 01:13:25 -04:00
|
|
|
install:
|
2015-11-08 15:21:30 -05:00
|
|
|
# source because it sets up env vars on some platforms
|
2016-02-28 23:31:58 -05:00
|
|
|
- source ci/travis/travis_install.sh
|
2015-04-25 16:35:44 -04:00
|
|
|
script: ./run_tests.py
|
2015-11-08 15:21:30 -05:00
|
|
|
env:
|
|
|
|
matrix:
|
2016-02-28 21:10:49 -05:00
|
|
|
- YCM_PYTHON_VERSION=2.7
|
|
|
|
- YCM_PYTHON_VERSION=2.6
|
|
|
|
- YCM_PYTHON_VERSION=3.3
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
env: YCM_PYTHON_VERSION=2.6
|
2015-11-08 15:21:30 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-02-28 21:10:49 -05:00
|
|
|
# The Travis apt source whitelist can be found here:
|
|
|
|
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
|
|
|
|
- ubuntu-toolchain-r-test # for new libstdc++
|
|
|
|
- deadsnakes # for various versions of python
|
|
|
|
- kalakris-cmake # for a more recent version of cmake (needed for ninja-build)
|
2015-11-08 15:21:30 -05:00
|
|
|
packages:
|
2016-02-28 21:10:49 -05:00
|
|
|
- cmake
|
|
|
|
- ninja-build
|
|
|
|
# The confusing part is that on Travis Linux with YCMD_PYTHON_VERSION=3.3,
|
|
|
|
# we build the C++ parts against the below system python3.3, but run
|
|
|
|
# against the pyenv python3.3. This is because stupid cmake 2.8.11 has a
|
|
|
|
# bug preventing it from finding the pyenv pythons (ostensibly; I haven't
|
|
|
|
# checked, but online reports say the issue is gone with cmake 3.4).
|
|
|
|
# Everything still works though, it's just weird.
|
|
|
|
- python3.3
|
|
|
|
- python3.3-dev
|
|
|
|
# Everything below is a Python build dep (though it depends on Python
|
|
|
|
# version). We need them because pyenv builds Python.
|
|
|
|
- libssl-dev
|
|
|
|
- zlib1g-dev
|
|
|
|
- libbz2-dev
|
|
|
|
- libreadline-dev
|
|
|
|
- libsqlite3-dev
|
|
|
|
- wget
|
|
|
|
- curl
|
|
|
|
- llvm
|
|
|
|
- libncurses5-dev
|
|
|
|
- libncursesw5-dev
|
2015-11-08 15:21:30 -05:00
|
|
|
cache:
|
|
|
|
directories:
|
2016-02-28 21:10:49 -05:00
|
|
|
- $HOME/.cache/pip # Python packages from pip
|
|
|
|
- $HOME/.pyenv # pyenv
|