2017-11-19 02:52:59 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
language: c++
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- COMPILER=g++
|
|
|
|
|
2018-01-03 05:00:41 +00:00
|
|
|
# Default --recursive (rapidjson/thirdparty/gtest) is unnecessary
|
|
|
|
git:
|
|
|
|
submodules: false
|
2018-01-18 18:24:59 +00:00
|
|
|
depth: 1
|
2018-01-03 05:00:41 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- git submodule update --init
|
|
|
|
|
2017-11-19 02:52:59 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: &apt_sources
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-precise-3.5
|
|
|
|
- llvm-toolchain-trusty-5.0
|
|
|
|
|
|
|
|
compiler: clang
|
|
|
|
os: linux
|
|
|
|
|
2018-01-03 04:39:27 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- build/clang+llvm-5.0.1-x86_64-linux-gnu-ubuntu-14.04/
|
2018-01-03 06:25:06 +00:00
|
|
|
- build/clang+llvm-5.0.1-x86_64-apple-darwin/
|
2017-12-07 19:53:09 +00:00
|
|
|
|
2017-11-19 02:52:59 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- env: COMPILER=g++-5
|
|
|
|
compiler: gcc
|
|
|
|
addons: &gcc5
|
|
|
|
apt:
|
|
|
|
packages: ["g++-5"]
|
|
|
|
sources: *apt_sources
|
|
|
|
|
|
|
|
- env: COMPILER=g++-7
|
|
|
|
compiler: gcc
|
|
|
|
addons: &gcc7
|
|
|
|
apt:
|
|
|
|
packages: ["g++-7"]
|
|
|
|
sources: *apt_sources
|
|
|
|
|
|
|
|
- env: COMPILER=clang++-3.5
|
|
|
|
addons: &clang35
|
|
|
|
apt:
|
|
|
|
packages: ["clang-3.5", "g++-7"]
|
|
|
|
sources: *apt_sources
|
|
|
|
|
|
|
|
- env: COMPILER=clang++-5.0
|
|
|
|
addons: &clang50
|
|
|
|
apt:
|
|
|
|
packages: ["clang-5.0", "g++-7"]
|
|
|
|
sources: *apt_sources
|
|
|
|
|
2018-01-18 18:24:59 +00:00
|
|
|
- env: COMPILER=clang++
|
|
|
|
osx_image: xcode9.1
|
|
|
|
os: osx
|
2017-11-19 02:52:59 +00:00
|
|
|
|
2018-01-18 18:24:59 +00:00
|
|
|
- env: COMPILER=g++-7
|
|
|
|
compiler: gcc
|
|
|
|
osx_image: xcode9.1
|
|
|
|
os: osx
|
2017-11-19 02:52:59 +00:00
|
|
|
|
|
|
|
|
2018-01-18 18:24:59 +00:00
|
|
|
allow_failures:
|
2017-11-19 02:52:59 +00:00
|
|
|
|
2018-01-18 18:24:59 +00:00
|
|
|
# macOS takes too long.
|
2017-11-19 02:52:59 +00:00
|
|
|
|
|
|
|
- env: COMPILER=clang++
|
|
|
|
osx_image: xcode9.1
|
|
|
|
os: osx
|
|
|
|
|
|
|
|
- env: COMPILER=g++-7
|
|
|
|
compiler: gcc
|
|
|
|
osx_image: xcode9.1
|
|
|
|
os: osx
|
|
|
|
|
2018-01-18 18:24:59 +00:00
|
|
|
# gcc builds that should be fixed at some point
|
2017-11-19 02:52:59 +00:00
|
|
|
|
|
|
|
- env: COMPILER=g++-5
|
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
- env: COMPILER=g++-6
|
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
- env: COMPILER=g++-7
|
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
- env: COMPILER=g++-5
|
|
|
|
compiler: gcc
|
|
|
|
osx_image: xcode9.1
|
|
|
|
os: osx
|
|
|
|
|
|
|
|
- env: COMPILER=g++-6
|
|
|
|
compiler: gcc
|
|
|
|
osx_image: xcode9.1
|
|
|
|
os: osx
|
|
|
|
|
|
|
|
- env: COMPILER=g++-7
|
|
|
|
compiler: gcc
|
|
|
|
osx_image: xcode9.1
|
|
|
|
os: osx
|
|
|
|
|
|
|
|
install:
|
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
|
|
|
if [[ "${COMPILER}" = "g++-5" ]]; then
|
|
|
|
brew install gcc5
|
|
|
|
fi
|
|
|
|
if [[ "${COMPILER}" = "g++-6" ]]; then
|
|
|
|
brew install gcc6
|
|
|
|
fi
|
|
|
|
if [[ "${COMPILER}" = "g++-7" ]]; then
|
|
|
|
brew install gcc7
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
- export CXX="${COMPILER}"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- ${CXX} --version
|
|
|
|
|
|
|
|
script:
|
2018-01-03 06:25:06 +00:00
|
|
|
- travis_retry ./waf configure
|
2017-11-19 02:52:59 +00:00
|
|
|
- ./waf build
|
2018-01-04 02:43:45 +00:00
|
|
|
- ./build/release/bin/cquery --ci --log-all-to-stderr --test-unit
|
|
|
|
- ./build/release/bin/cquery --ci --log-all-to-stderr --test-index
|
2017-12-07 22:34:11 +00:00
|
|
|
|
2017-12-07 16:12:15 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2018-01-18 05:06:18 +00:00
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "ircs://chat.freenode.net:6697/#cquery"
|
|
|
|
template:
|
|
|
|
- "[ %{repository_slug}#%{commit}] %{result} on %{branch} by %{author} (%{build_url})"
|