-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
90 lines (75 loc) · 3.85 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
78
79
80
81
82
83
84
85
86
87
88
89
90
# ######################################################################### #
# Georgiev Lab (c) 2015-2016 #
# ######################################################################### #
# Department of Cybernetics #
# Faculty of Applied Sciences #
# University of West Bohemia in Pilsen #
# ######################################################################### #
# #
# This file is part of CeCe. #
# #
# CeCe is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# CeCe is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with CeCe. If not, see <http://www.gnu.org/licenses/>. #
# #
# ######################################################################### #
sudo: required
dist: trusty
# Operating systems
os:
- linux
- osx
# Compilers
compiler:
- clang
- gcc
language: cpp
cache: ccache
# Disable build for AppVeyor branch
branches:
except:
- appveyor
# Environment variables
env:
matrix:
- CECE_RENDER=On
- CECE_RENDER=Off
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- clang-3.6
- libgl1-mesa-dev
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated cmake || brew upgrade cmake ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated ccache || brew upgrade ccache ; fi
before_script:
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
- mkdir build
- pushd build
- cmake -DCMAKE_BUILD_TYPE=release -DCECE_TESTS_BUILD=On -DCECE_RENDER=$CECE_RENDER ..
- popd
script:
- VERBOSE=1 cmake --build build
after_success:
- pushd build
- GTEST_COLOR=1 ctest --verbose
- popd
notifications:
slack:
secure: "u0o6hEhUHDdhXxilCZsL/JK33305lp1VdujduJu/mNr3E1+ITKz4SeFl0khVvV6FiroJ3V2sagHkJ2BJKBa6BbPX+2wAI3HCX8ycTBmS0L+JYdFP/wv9dIO5DxWaQF/MrcxpP6i9OnLSz2SJM83bK2cVm1oN3zAV0xcTYRBQgLohk1pqGsjyUyJfrDtApEkzvjtRnvx2udO8KWR1SmSg/SGdsNo6h45idpWTIMQb7hlwcxgmE8jGYB1i2Ltuytd1c0ZaqFuSrJj6fd6ApMx3YpKhyz1TUzSDYtdbDKuULES8dRes2BwXnBnRSCy0odbgSLR5nG+XZ6hh39hJGssAlYewKfT7PuVrz3AhXn8CIWkADurWxnGXjt1UM3jw71CBb0RTUt6U7nzyaeqGcAq5tlg830LV6Ppfwn0of2nIojLmjyvSE4aLrqhiWkeuALPvE5jDSJS0LxrG+FK8R6oH6t+gwG2bl5NaVilobeZb2uHHv3W+NKmNb1c7wY7jHLw49GBcMVD+dV53E+k3bTQ4RIIlziZSC/brvAqfIKilSxZlIhoQpo8M44Usvg0yMSGqe4ZUgyWAfwYWv5QvZ/+YFrUS2GgKHabMMvMtw67t5+Ii4ka6AcDlrE2mNeIoZBU6jJc+vxMnIgLtezuQXUxeT/jjJToAbq2Rd2GELskwIks="
# ######################################################################### #