-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
51 lines (41 loc) · 1.24 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
# inspired by
# some googling
# llvm.org/apt
# docs.travis-ci.com
# github.com/beark/ftl/blob/master/.travis.yml
# stackoverflow.com/a/30925448/865719
# docs.travis-ci.com/user/apt
# github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
# github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
# run this in a container
sudo: false
language: cpp
compiler:
- clang
- gcc
env:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- libc++-dev
- gcc-4.8
- g++-4.8
install:
# compilers
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
# cmake 3
- mkdir -p _build/cmake_bin _build/cmake_build
- wget --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz -O _build/cmake_bin/cmake.tgz
- tar xvfz _build/cmake_bin/cmake.tgz -C _build/cmake_bin
- export CMAKE3="$(pwd)/_build/cmake_bin/cmake-3.3.2-Linux-x86_64/bin/cmake"
script:
- cd _build/cmake_build
- $CMAKE3 -DCMAKE_BUILD_TYPE=$BUILD_TYPE ../..
- $CMAKE3 --build .