forked from geoneric/fern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (56 loc) · 1.95 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
# ------------------------------------------------------------------------------
# Fern © Geoneric
#
# This file is part of Geoneric Fern which is available under the terms of
# the GNU General Public License (GPL), version 2. If you do not want to
# be bound by the terms of the GPL, you may purchase a proprietary license
# from Geoneric (http://www.geoneric.eu/contact).
# ------------------------------------------------------------------------------
language: cpp
sudo: false
os:
- linux
# - osx
compiler:
# - clang
- gcc
env:
- TRAVIS_BUILD_TYPE=Debug TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
- TRAVIS_BUILD_TYPE=Release TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
# matrix:
# - exclude:
# - os: osx
# compiler: gcc
# - allow_failures:
# - os: osx
# - compiler: clang
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
addons:
apt:
sources:
- boost-latest
# - llvm-toolchain-precise-3.5
- ubuntu-toolchain-r-test
packages:
# - clang-3.5
- g++-4.9
- libboost1.55-all-dev
# - libc++-dev
before_install:
- wget --no-check-certificate http://www.cmake.org/files/v3.10/cmake-3.10.1-Linux-x86_64.tar.gz
- if [ "$CC" = "clang" ]; then export CC="clang-3.5" CXX="clang++-3.5"; fi
- if [ "$CC" = "gcc" ]; then export CC="gcc-4.9" CXX="g++-4.9"; fi
install:
- tar zxf cmake-3.10.1-Linux-x86_64.tar.gz
- export PATH=$PWD/cmake-3.10.1-Linux-x86_64/bin:$PATH
before_script:
- mkdir build
- cd build
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DFERN_BUILD_TEST:BOOL=TRUE -DFERN_BUILD_ALGORITHM:BOOL=TRUE ..
- cd ..
script:
- cd build
- cmake --build . --config ${TRAVIS_BUILD_TYPE} --target all
- ctest -C ${TRAVIS_BUILD_TYPE}
- cd ..