-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
113 lines (100 loc) · 4.61 KB
/
.travis.yml
File metadata and controls
113 lines (100 loc) · 4.61 KB
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
# ######################################################################### #
# 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
deploy:
provider: bintray
file: "build/descriptor.json"
user: "ntsfka"
key:
secure: "VCTL1Xz6YLmBfuFeRdpi4CYkDuvmIvi9n9aKG8NKBfWtA67FZPX1ffk/rAQEGzk8OULBgmIvVW/oPp9XF3UBsfGiwv8/AOVTgAntRo59LNBT4fIy7435bmrnDuXpa/Be55MIOrWyM2XykONUOznRCUq5ygt5z8s/HsSmscht+P298MhK3+5Hd2fGDV627Ixc35hkSsfzK1bonlrOjBHYEOrC2LRepUBmghW3f2aDgntcLqB90BEwxp1wdenpQvj1L1r0GZZwELB/nVFYRX8ikBZ4w3MVPZD/Wdr9pdMX0qABKaa7P+Z4+FDVfTOGGfvwzI8TKiEbemWYykunFZAnBu5kRo5zrQrKwv6yxvgaNKjF3CyIw5Gp2vECQVFZnyxcVP3H8jOYgSBsmmp52Dp1IqavD4Ne4FMHJI2KqWG5zhYy0GBquMcsGyKoU5+LtxlPBm6RF/vJ63t3792wijLml+CmJZuJV4h5fBLnRlsqQb92VCZ735ou/c3g6LWiVa2B0MuTL6Rx+6DGXKXMs189S+D1cBjw8n0RLiZcJINcrSRoSsEsxxpH6aUsF2lLLc884yOknj20gYkjkQuOKr8kQ4c15OrCnFT3CImT2qrh7xOMZdfjRXTDdQFNy2Q1XF2RvxAuKY9Ga3XCSvrqQm3iTpGNPAnrTjMBKoOLVk9BTpA="
skip_cleanup: true
on:
condition: "$DEPLOY = On"
tags: true
# ######################################################################### #