forked from ycm-core/ycmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (84 loc) · 2.89 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: csharp
os:
- linux
- osx
sudo: false
mono:
- beta
before_install:
- git submodule update --init --recursive
install:
# source because it sets up env vars on some platforms
- source ci/travis/travis_install.sh
compiler:
- gcc
script: ./run_tests.py
after_success:
- if [ x"${COVERAGE}" = x"true" ]; then coveralls; fi
env:
global:
- MONO_THREADS_PER_CPU=2000
- MONO_MANAGED_WATCHER=disabled
# Travis can run out of RAM, so we need to be careful here.
- YCM_CORES=3
matrix:
# Don't forget to take the below matrix exclusions into account.
- USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7
- USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7 COVERAGE=true
- USE_CLANG_COMPLETER=false YCMD_PYTHON_VERSION=2.6
- USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.6
- USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=3.3
matrix:
exclude:
- os: osx
env: USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7 COVERAGE=true
- os: osx
env: USE_CLANG_COMPLETER=false YCMD_PYTHON_VERSION=2.6
- os: osx
env: USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.6
- os: linux
env: USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7
addons:
# If this doesn't make much sense to you, see the travis docs:
# https://docs.travis-ci.com/user/migrating-from-legacy/
apt:
sources:
# 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++
- llvm-toolchain-precise-3.7 # for clang
- deadsnakes # for various versions of python
- kalakris-cmake # for a more recent version of cmake (needed for ninja-build)
packages:
- cmake
- clang-3.7
- 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
cache:
directories:
- $HOME/.cache/pip # Python packages from pip
- $HOME/.npm # Node packages from npm
- $HOME/.multirust # What multirust downloads
- $HOME/.cargo # Cargo package deps
- $HOME/.pyenv # pyenv
- $TRAVIS_BUILD_DIR/clang_archives # Clang downloads
- $TRAVIS_BUILD_DIR/third_party/racerd/target # Racerd compilation