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
|
2016-12-06 16:27:42 -05:00
|
|
|
script: ./run_tests.py
|
2016-10-11 21:18:08 -04:00
|
|
|
after_success:
|
|
|
|
- codecov
|
2015-11-08 15:21:30 -05:00
|
|
|
env:
|
2016-10-02 14:24:45 -04:00
|
|
|
global:
|
|
|
|
# Travis can run out of RAM, so we need to be careful here.
|
|
|
|
- YCM_CORES=3
|
2016-10-11 21:18:08 -04:00
|
|
|
- COVERAGE=true
|
2015-11-08 15:21:30 -05:00
|
|
|
matrix:
|
2016-12-06 16:27:42 -05:00
|
|
|
- YCM_PYTHON_VERSION=2.6
|
|
|
|
- YCM_PYTHON_VERSION=2.7
|
|
|
|
- YCM_PYTHON_VERSION=3.3
|
2016-02-28 21:10:49 -05:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- os: osx
|
2016-12-06 16:27:42 -05:00
|
|
|
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++
|
2016-04-16 21:10:57 -04:00
|
|
|
- george-edison55-precise-backports # for a more recent version of cmake (3.2.3)
|
2015-11-08 15:21:30 -05:00
|
|
|
packages:
|
2016-04-16 21:10:57 -04:00
|
|
|
- cmake-data
|
2016-02-28 21:10:49 -05:00
|
|
|
- cmake
|
2017-07-20 16:14:10 -04:00
|
|
|
# 4.8 is the first version of GCC with good enough C++11 support to build
|
2017-06-05 05:49:10 -04:00
|
|
|
# ycmd.
|
2017-07-20 16:14:10 -04:00
|
|
|
- g++-4.8
|
2016-02-28 21:10:49 -05:00
|
|
|
- ninja-build
|
|
|
|
# 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
|