-
Notifications
You must be signed in to change notification settings - Fork 101
/
.travis.yml
58 lines (47 loc) · 1.29 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
# Build matrix / environment variable are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on: http://lint.travis-ci.org/
sudo: false
dist: trusty
language: cpp
compiler:
- gcc
os:
- linux
- osx
git:
submodules: false
addons:
apt:
# List of whitelisted in travis packages for ubuntu-trusty can be found here:
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-trusty
# List of whitelisted in travis apt-sources:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libsnappy-dev
- libtool
before_install:
echo $TRAVIS_OS_NAME
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157;
fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
if [ -L /usr/local/include/c++ ]; then rm /usr/local/include/c++; fi;
brew install gcc@5;
brew install snappy;
fi
# /usr/bin/gcc is stuck to old versions on both Linux and OSX.
- if [ "$CXX" = "g++" ]; then export CXX="g++-5"; fi
- echo ${CXX}
- ${CXX} --version
before_script:
- cmake .
script:
# `make all` still break
- make db_test
- ./db_test