-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
117 lines (103 loc) · 5.32 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# ######################################################################### #
# 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
cache: ccache
# Disable build for AppVeyor branch
branches:
except:
- appveyor
matrix:
include:
- os: linux
compiler: gcc
env: CECE_RENDER=On DEPLOY=On
- os: linux
compiler: gcc
env: CECE_RENDER=Off DEPLOY=Off
- os: linux
compiler: clang
env: CECE_RENDER=On DEPLOY=Off
- os: linux
compiler: clang
env: CECE_RENDER=Off DEPLOY=Off
- os: osx
compiler: clang
env: CECE_RENDER=On DEPLOY=On
- os: osx
compiler: clang
env: CECE_RENDER=Off DEPLOY=Off
- os: osx
compiler: gcc
env: CECE_RENDER=On DEPLOY=Off
- os: osx
compiler: gcc
env: CECE_RENDER=Off DEPLOY=Off
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- clang-3.6
- libgl1-mesa-dev
- xorg-dev
- 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
before_deploy:
- pushd build
- cpack -G TGZ
- popd
notifications:
slack:
secure: "Ea08dt4n5FNh881ZI+6A8auP9/QHjikCJMfQmJKcwL+/J+rIpmHRu/LkwfSy6BpeadX71JE3oQTokHz0fod71tAP6HDpaT+CStG2Bk0Z+499bl3EZkWM2AxaKTxn1W8U0kz8zv66YYai0b/YoBKPxyb7dA4dUv6oK9KrQL3Z6Xx+YiWM/XvDY9LBEb4lr0U0MMH4XAx+KJrGUEiGakLMwLh1pxs4rI1pG4namEkjqPAkornkvhfQIt15BP+tGoehvmiX6YCsDDSWUr1ZbWxicSXNb00CqkaopB0q0sx8Z63AjewljBUJrqbYe3kWMsAofAiDgjnpknhnFLYZQ4K9Vtl2aCi+S10IStFwCgqeM1QDiwGCrXpMfYzC6MkBEXCUQiquzYLNukdI0l/oGqnobSYZSzv5RY++EyaHhnM+MQEhYkf0nvAeXPjnzS8jHUswhJ3hLtznAfqBv3w1SvqhBWd5HebensdgDU8KOFR4h1PwSsq9fwzHzCZzjB0yDIbL2wzulbsx/7dz+x5RrrzgQbBc7z5Tjx7A0aA/A9r/7UoRRM7dZui10e9md45e12X8rrTuEBf4zXgpW9Ddt5qEFLxgqbgJI/XuGpKNgrmMSSy6C3r4TrXUWhG20Fu5g5d7lPMFC01ZQP2M8UJL6kzYlnhljjH38tgTeylwL2vsaWo="
deploy:
provider: bintray
file: "build/descriptor.json"
user: "ntsfka"
key:
secure: "LPt4Tx0NfVRJpqqfPTnSXsPfHeRFp2OhP3W1P+IR7NrQEUk7o6RTQeEtans6lBsIC2bibwGqX2VN/kvYtC7j48tm4/Fqds6KTm3wUfWWl0t9L12js15n7YaKz6xr8/C/IDIFZYdzjqDbj6wbOTtNNUOvR2fCF4a2z/bgRVZd5YwPk7LmnUeSB/2MPpB/ccJ/ggsFCCUGLN6LiUynTihlBJWaxOJfF96q9B2wHn4GXdhzuZdzfreKqApEHiPeC9Bm+HIuRuGaHgnvmjFGCe0rGO+SHOsL/zjRQioO0+eS4C5V2Z3KmXbTQn0J0F2m072BaJ9i4lUXBEFL7hQUNxi9UnvnRMbskottHhAMYVCA5RhYJOuw4GRdI5PJfsKGDQ0fmy5rRsHKZk0DdrnGLLMJyXViLtjPbuTbMzc3xcAJ0V5fh+sxxF2yHVnjEL2kNe3XCJjCojEA3brEdeoIhz9iuvcbs48Zgzj+SFtgx2Tzvt/gBDmbL5p56+doxnymC2tv+Fw1STyhpU8NtY8Qh0Yo3hNCaXnFIkGL4b+e2ZP0KQeo0l5lgZ5+acGF17+XtNe4yjJV3mDw44qEwWWcgDu9I/U/C/ReajTyStEIws6aRKsnola4v+X6oehh8PPBSOyNJJ2fQiKk5nXwvdHEekSy2KJXwfUitutr8jrtnaClcD8="
skip_cleanup: true
on:
branch: master
condition: "$DEPLOY = On"
# ######################################################################### #