Skip to content

Commit 6ea832a

Browse files
committed
fix: Your C++ compiler does NOT fully support C++11
1 parent b09e73a commit 6ea832a

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.travis.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,35 @@ before_install:
1212
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
1313

1414
install:
15-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y cmake gcc-4.8 g++-4.8 clang golang; fi
16-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="g++-4.8" CC="gcc-4.8" GOROOT="/usr/lib/go" GOPATH=$HOME/gocode PATH=$PATH:$GOPATH/bin; fi
15+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y clang golang; fi
16+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="g++-4.9" CC="gcc-4.9" GOROOT="/usr/lib/go" GOPATH=$HOME/gocode PATH=$PATH:$GOPATH/bin; fi
1717

18+
addons:
19+
apt:
20+
sources:
21+
# The Travis apt source whitelist can be found here:
22+
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
23+
- ubuntu-toolchain-r-test # for new libstdc++
24+
- george-edison55-precise-backports # for a more recent version of cmake (3.2.3)
25+
packages:
26+
- cmake-data
27+
- cmake
28+
# 4.9 is the first version of GCC with good enough C++11 support to build
29+
# ycmd.
30+
- g++-4.9
31+
- ninja-build
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
1844

1945
compiler:
2046
- gcc

0 commit comments

Comments
 (0)