-
Notifications
You must be signed in to change notification settings - Fork 216
/
Copy path.travis.yml
188 lines (159 loc) · 6.1 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
language: cpp
script:
- make -j2 VERBOSE=1 && make install
- if [ "$CHEALPIX" == "Off" ]; then make buildtests && make test; fi
cache:
directories:
- ${TRAVIS_BUILD_DIR}/deps/cmake
env:
global:
- DEPS_DIR=${TRAVIS_BUILD_DIR}/deps
before_install:
- export CHECKOUT_PATH=`pwd`;
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update && brew install gnu-which --with-default-names; fi
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
- export SUPER4PCS_RELEASE_NAME="Super4PCS-${TRAVIS_TAG}-${TRAVIS_OS_NAME}-${CXX}"
- export SUPER4PCS_RELEASE_DIR="${CHECKOUT_PATH}/${SUPER4PCS_RELEASE_NAME}"
- which $CXX
- which $CC
- $CXX --version
############################################################################
# Install a recent CMake
############################################################################
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
apt-cache search libboost-system
# remove existing cmake install
sudo apt-get remove -qq cmake cmake-data
CMAKE_URL="https://www.cmake.org/files/v3.3/cmake-3.3.1-Linux-x86_64.tar.gz"
mkdir cmake3.3 && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake3.3
export PATH=${PWD}/cmake3.3/bin:${PATH}
fi
- cmake --version
matrix:
include:
# mac clang Release
- env: BUILD_TYPE=Release BOOST=Off CHEALPIX=Off
os: osx
compiler: clang
# clang 3.8 Release
- env: CLANG_VERSION=3.8 BUILD_TYPE=Release BOOST=Off CHEALPIX=Off
os: linux
addons: &clang38
apt:
packages:
- util-linux
- clang-3.8
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
# gcc-5 Release
- env: GCC_VERSION=5 BUILD_TYPE=Release BOOST=Off CHEALPIX=Off
os: linux
addons: &gcc5
apt:
packages:
- g++-5
sources:
- ubuntu-toolchain-r-test
############################################################################
# BOOST
############################################################################
# mac clang Release
- env: BUILD_TYPE=Release BOOST=On CHEALPIX=Off
os: osx
compiler: clang
# clang 3.6 Release
- env: CLANG_VERSION=3.6 BUILD_TYPE=Release BOOST=On CHEALPIX=Off
os: linux
addons: &clang36
apt:
packages:
- libboost-filesystem-dev
- libboost-system-dev
- clang-3.6
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
# clang 3.8 Release
- env: CLANG_VERSION=3.8 BUILD_TYPE=Release BOOST=On CHEALPIX=Off
os: linux
addons: &clang38
apt:
packages:
- libboost-filesystem-dev
- libboost-system-dev
- util-linux
- clang-3.8
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
# gcc-5 Release
- env: GCC_VERSION=5 BUILD_TYPE=Release BOOST=On CHEALPIX=Off
os: linux
addons: &gcc5
apt:
packages:
- libboost-filesystem-dev
- libboost-system-dev
- g++-5
sources:
- ubuntu-toolchain-r-test
############################################################################
# Chealpix
############################################################################
# mac clang
- env: BUILD_TYPE=Release BOOST=On CHEALPIX=On
os: osx
compiler: clang
# clang 3.8
- env: CLANG_VERSION=3.8 BUILD_TYPE=Release BOOST=On CHEALPIX=On
os: linux
addons: &clang38
apt:
packages:
- libboost-filesystem-dev
- libboost-system-dev
- util-linux
- clang-3.8
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
# gcc5
- env: GCC_VERSION=5 BUILD_TYPE=Release BOOST=On CHEALPIX=On
os: linux
addons: &gcc5
apt:
packages:
- libboost-filesystem-dev
- libboost-system-dev
- g++-5
sources:
- ubuntu-toolchain-r-test
install:
- cd $CHECKOUT_PATH
- mkdir -p build
- cd build
- if [ "$GCC_VERSION" == "5" ]; then CXX_FLAGS="${CXX_FLAGS} -DRANGES_CXX_CONSTEXPR=RANGES_CXX_CONSTEXPR11"; fi
- if [ -n "$CLANG_VERSION" ]; then CXX_FLAGS="${CXX_FLAGS} -D__extern_always_inline=inline"; fi
- cmake .. -DSUPER4PCS_COMPILE_TESTS=TRUE -DIO_USE_OPENCV=FALSE -DENABLE_TIMING=FALSE -DSUPER4PCS_USE_CHEALPIX=$CHEALPIX -DDL_DATASETS=FALSE -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${SUPER4PCS_RELEASE_DIR}/
# safelist
branches:
except:
- gh-pages
############################################################################
# Artifacts creation
############################################################################
after_success:
- zip -r ${SUPER4PCS_RELEASE_NAME}.zip ${SUPER4PCS_RELEASE_DIR}
deploy:
provider: releases
draft: true
skip_cleanup: true
api_key:
secure: inU1jKE5PfPyhONbz7OvNLggEAQ0RE4CwY+WaWLsteEXkd7jl+IsIsIJ52E8xSma15HZHw9cqTGlQcZ+Hk8fBJBC4b5wVFOvoVauyMGYY/askI9uQqsmhDzmGk7sbDv/RtPoMfEPOJ8Y78M+NqCBbF8j5Xn9K/xpVOCpQKwG8JJB0/3z/NUu6fmcBwFvu2rqcdqX6FpfZSDOYCZJ0pK7JGKgah4DmV7M71emIlj5GOj007rbhq/C4j4hb9/CyWnh65yC5SA9In/DBgX3t2ipjnOX19Ft/7upCjLDq4KlblmGexdSvN8S3HV6Bcr3lqNU2XcOHML7xeR87EVYclioEqz937rav4XEuhMaRlonY6nPPZUeSyFns29m2K194oupRzgf4FwsdmWdpZN51baO+zy2X+nAovrLGBEjr+rMrg6COsno4pKJT+CDG0UbE34DpnyNPx7rF8T++FzS8LUdIWTLZSHQSBlJhWX3EzAAy7KJ+xOiOXswg7T7D9LoErS8wygDw21ssW0z/vgFzvyOKbfT1O6B3SGnL+e5vnc1A9VqXm/Gp8Rs3lRCOilwC5HIWczJaczCJiHR+boImPNZXuhz9e3WIjMlJ/upqbpMnwKPC+pH4d6d6LWZzaDQDXSZ7bqShBvFQCgAkgy+IVPUU7AwKYkXlkNaba9J2xuRaA0=
file: ${SUPER4PCS_RELEASE_NAME}.zip
tag_name: $TRAVIS_TAG #https://github.com/travis-ci/travis-ci/issues/6132#issuecomment-303634652
on:
tags: true