This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 163
/
.travis.yml
77 lines (67 loc) · 1.78 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
dist: trusty
sudo: false
# Use generic to avoid travis-ci overwriting CC and CXX
# See: https://stackoverflow.com/questions/35110123/travis-ci-with-c14-and-linux
language: generic
# Default git clone --recursive clones unnecessary dependencies so we override
# it with our own command in before_install
git:
submodules: false
depth: 1
addons:
apt:
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
- llvm-toolchain-trusty-6.0
cache:
directories:
- clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/
- clang+llvm-6.0.0-x86_64-apple-darwin/
# When building with Clang GCC still has to be installed to provide libstdc++
# that Clang uses (Clang doesn't bundle libc++)
matrix:
fast_finish: true
include:
- os: linux
env: CC=gcc-5 CXX=g++-5
addons:
apt:
sources: *sources
packages:
- g++-5
- os: linux
env: CC=gcc-7 CXX=g++-7
addons:
apt:
sources: *sources
packages:
- g++-7
- os: linux
env: CC=clang-3.6 CXX=clang++-3.6
addons:
apt:
sources: *sources
packages:
- clang-3.6
- g++-5
- os: linux
env: CC=clang-6.0 CXX=clang++-6.0
addons:
apt:
sources: *sources
packages:
- clang-6.0
- g++-5
- os: osx
osx_image: xcode9.2
env: CC=clang CXX=clang++
before_install:
- git submodule update --init
- eval "${INSTALL}"
script:
- cmake -DCI=ON -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug .
- cmake --build . -- -j 3
- cmake --build . --target install
- ./install/bin/cquery --ci --log-all-to-stderr --test-unit
- ./install/bin/cquery --ci --log-all-to-stderr --test-index