-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
116 lines (102 loc) · 5.3 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
# ######################################################################### #
# 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
- libpython2.7-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: "TDjLJCNdUM+Iwe318zYNeTYIeOi0JZJCPpzATSXRvTdxvCcYHMespzKoGOfLsqxdQNse3DCOECMMtPVfjH1KQIx6h9nx7BkX/0HenPX4PUa/wnPWfoUxj3vJdzOUx83ih7wQrJd6Sqr9OmyrSoeYtohf53WEyYaqD/aco3aIIij+7LqiFgSMeet4CehNjMZM2INu93MDU2tNn0ibOiLAd5078HDj3nJvg508Owccl1J8IWfRnE/ONEMbYgdXzNd5zgfYoGHQIZe7GV2pWVdV8vAUMX3ym5u9FIbRnTMvyt2W3Og363OcFk+lBcEKQBWlHAZmwn8UCgo7QOhL0sA/qUSpu7A/gBC6AZFfNyoRhFCFLAMkoJBcgrqFX8hFyDrnZip6h2J2FMPMy3pHoKnXLsRm5L5uur0JA7ODu8hHiwFA7BReWUJZQlAUnpsdFmeUA2Oaahkhil3GrT89O95tyIRFyYW0DzXP4R89FD5MyhDycMyA0Chd2TrhbhEX4ogfEv7xN5HD2UMYCGbMCrcgJor5QoV7lo8FfVdjKyp90KYT1GUFMagCGBjZHHyDDMMpDGFQsponRvWepYL+5XkRhhX6zx9YPPh9yzL70+/ILKs/OQpm+F1yYr0pXrYK0c2mgn5qXJBU7aaPCqhzER+Q7khTO0z36nB0KvIU8mRp8fc="
deploy:
provider: bintray
file: "build/descriptor.json"
user: "ntsfka"
key:
secure: "PNgVF3S2R4U1x9HPcuCaueoXRKT07QVNeUBc2UvpsRmnELDxLEhB//SEa37XkZQ67qoxV7EQ2/DMVV98bF5hqr5f0ejkT6oyZ2GCLVas3BsODN7qPDZl4CLFtlmg/4MhNH5vi+KAXQ/nX+XsidhGIuhgda9tVfbK6WG+nKh144fF8+Y6PnoMZOIDCDYs/ITjqCTMh/Tw3ygef16UZUXZDUEngqdlqp1yZStIW9G856JAwI0+8QKSxvgUnS8uLZaXcjXrdkIOEWcmGdxdEzEA4W5mEcXc5hkwakCP6Y7orUg1msWyBpjBHrCe3UOeXDHQgnRxmCIXE4YqsAQQ4geALY2F+hOluFB5aNfx226BAyjwR10czbHu0yrQ0YER+E4BAKpy0lcUbHQwWLphrnbRbeLw6uWl9Dinjt/sIr4tu8fxU35ursnYnn0qJrzZT6AQA+HPAqgMqxRW5VEDIMSTg/wLGch+dZxgw6pQZuHHSyAYbnY/RQj4WG3Im+UIqaVMe2nmh7WVoVr7m/nppIw986tSA8AcyERef7IPaxJp96y84YzWRnEK+6FJJgZlKrnsat4rR3YPwldybIM5VBdGJpC1TomtA32SDgmlfXezBXjCXxktJP3bAtPIdoxHjbqEaJxEdajUvLvHu1LWoNzhdzwQytnQmUKLpytewitI+So="
skip_cleanup: true
on:
branch: master
condition: "$DEPLOY = On"
# ######################################################################### #