forked from ClickHouse/clickhouse-odbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 970 Bytes
/
.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
language: cpp
sudo: required
dist: trusty
os: linux
compiler:
- gcc
cache:
ccache: true
addons:
apt:
sources: [ ubuntu-toolchain-r-test, llvm-toolchain-precise ]
packages: [ gcc-6, g++-6, clang-5.0 ]
matrix:
include:
- compiler: ": gcc-6"
before_install:
- export CC="gcc-6" CXX="g++-6"
- compiler: ": clang-5.0"
before_install:
- export CC="clang-5.0" CXX="clang++-5.0"
exclude:
- compiler: gcc
install:
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu xenial main universe"
- sudo apt-get update -q > build.log 2>&1 || (cat build.log && exit 1)
- sudo apt-get install unixodbc-dev binutils -y > build.log 2>&1 || (cat build.log && exit 1)
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER=`which $CXX` -DCMAKE_C_COMPILER=`which $CC` && make -j `nproc || grep -c ^processor /proc/cpuinfo`