-
Notifications
You must be signed in to change notification settings - Fork 174
/
.travis.yml
191 lines (173 loc) · 7.16 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
189
190
191
# Travis CI script
# This is a skeleton created by zproject.
# You can add hand-written code here.
### NOTE: This file was customized after zproject generation;
### be careful about updating it (git difftool is your friend)
language:
- c
cache:
- ccache
### Customization note: added OSX
os:
- linux
- osx
### Customization note: enabled dist:trusty
dist:
- xenial
#services:
#- docker
# Set CI_TIME=true to enable build-step profiling in Travis
# Set CI_TRACE=true to enable shell script tracing in Travis
# Set CI_CONFIG_QUIET=true to enable "configure --quiet" (only report stderr)
# Set CI_REQUIRE_GOOD_GITIGNORE=false to NOT fail if "git status -s" is not clean
# Set CI_REQUIRE_GOOD_CLANG_FORMAT=true to fail if "clang-format" check is not clean
env:
global:
- CI_TIME=false
- CI_TRACE=false
- CI_CONFIG_QUIET=true
- CI_REQUIRE_GOOD_GITIGNORE=false
- CI_REQUIRE_GOOD_CLANG_FORMAT=false
### Customization note: added credentials data and comments below
# Note: Secure variables must be global!
#
# Bintray upload credentials. (BINTRAY_USER and BINTRAY_KEY are encrypted!)
# These are used to publish the czmq jni bindings to bintray when the deploy
# step is triggered.
- secure: Dm9Hg0hqE1K9uDSrfW/fWj0ehzBTeevlP87J/d4bXQ2HHTqn7JoJpXFu2b0CkCquZ/raZIOQIXPA0heGmVyafNKIHl1Wotb1TVxB7VS6cLb67BxH9M7LIxwU2vPk/qpsSUGqRt73uDe6HNIqOQubokyWHJ/KwIDVCDa8sP1CpEs=
- secure: LZxtiweZGsN2Eu1ck7yDBYDRmcE4+q7SWuFSUZzYeXhyZIilBCUwuvKa3FNkC3SwoUpBfZ+T5wyKfSvhZKFUn0p3FVykpbEZxpDCke5sclu9Q9uDP2t3926/Wf8kFT3NG51qxAJwgk9vXh5Rz9JcIlyPJY6/MCm5n/HBo+BpJ9A=
- BINTRAY_USER_ORG=zeromq
# tokens to deploy releases on OBS.
# 1) Create 2 OBS tokens with osc token --create network:messaging:zeromq:release-<stable|draft> <project>
# encrypt them with travis encrypt --org -r <org>/<repo> OBS_<STABLE|DRAFT>_TOKEN="<token>"
# 2) Uncomment the three "secure" lines and paste the three generated hashed
# strings, which include each token's name, as parameters
- secure: VmpVRSM7UNdF/P6CGac9r+yWYyngU/vBkI1IGPL6gTNm5ctAUzr+ni/3A4K9vHCLXEXFC2BX5XO050e09dw3U/jtG1n463E2JPW/sOmirQZl9N2RPU9fmT07mLWkpNKkPC7P0z/c37z2/xFlDQZ5gwIAnuMKLW1Gzg/XkTVCWh4=
- secure: kjO5KenouBNcw41x0+7dLBZ4k/32/EQzx2nM4PbsblAODnnKxI6FDWh+25qvu8YFdItvuoRnISVRORWjEJYBBD6JhEbpCvlcn0tQ7RjeTT4mUEl03qrtEmYtjFJklZ1Wf6m1ZA3fokC1uzyaX4eF+vgO//v8j4UrHcSRrr3s2V0=
- secure: dmmMz3OyX9xZF/IoSYJnyZS37KVx5xdL9qkAj8nH10n9w9T+y86WcQx/vYFOEGTufzCV+eAgHRV7hvJyYyA6MdrhrEvytVgYfZTcdYhVOGJxeANxAUCtp1TTY3EEgamGFYSUMMN6U2mowg7qNHzBkAu61bYF+DjcvUTPhoSasJs=
### Customization note: build/test options
matrix:
- BUILD_TYPE=default
- BUILD_TYPE=default-Werror
- BUILD_TYPE=cmake
- BUILD_TYPE=check_zproject
# Prerequisite packages provided by OS distro and used "as is"
pkg_deps_prereqs_distro: &pkg_deps_prereqs_distro
# Prerequisite packages that may be built from source or used from
# prebuilt packages of that source (usually not from an OS distro)
pkg_deps_prereqs_source: &pkg_deps_prereqs_source
- libzmq3-dev
- libczmq-dev
pkg_deps_prereqs: &pkg_deps_prereqs
- *pkg_deps_prereqs_source
- *pkg_deps_prereqs_distro
pkg_deps_doctools: &pkg_deps_doctools
- asciidoc
- xmlto
pkg_deps_devtools: &pkg_deps_devtools
- git
pkg_src_zeromq_ubuntu12: &pkg_src_zeromq_ubuntu12
- sourceline: 'deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_12.04/ ./'
key_url: 'http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_12.04/Release.key'
pkg_src_zeromq_ubuntu14: &pkg_src_zeromq_ubuntu14
- sourceline: 'deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_14.04/ ./'
key_url: 'http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_14.04/Release.key'
pkg_src_zeromq_ubuntu16: &pkg_src_zeromq_ubuntu16
- sourceline: 'deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_16.04/ ./'
key_url: 'http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_16.04/Release.key'
# Note: refer to ubuntu16 if you use dist==Xenial
# Also note that as of early 2017, either dist==trusty or services==docker
# is needed for C++11 support; docker envs are usually faster to start up
### Customization note: packages referred by older incarnation hardcoded into this list
addons:
apt:
sources: *pkg_src_zeromq_ubuntu16
packages: &pkg_deps_common
- *pkg_deps_devtools
- *pkg_deps_prereqs
- uuid-dev
- zproject
### Customization note: build/test options
### Note: osx environment does not have docker
matrix:
exclude:
- os: osx
env: BUILD_TYPE=check_zproject
include:
- env: BUILD_TYPE=default-with-docs
os: linux
addons:
apt:
sources: *pkg_src_zeromq_ubuntu16
packages:
- *pkg_deps_common
- *pkg_deps_doctools
- env: BUILD_TYPE=valgrind
os: linux
addons:
apt:
packages:
- valgrind
- env: BUILD_TYPE=check_zproto
os: linux
services: docker
# Python build are currently not supported by travis on macOS.
# See https://docs.travis-ci.com/user/languages/python/
# - env: BUILD_TYPE=bindings BINDING=python
# os: osx
- env: BUILD_TYPE=bindings BINDING=python
os: linux
addons:
apt:
packages:
- python3
- env: BUILD_TYPE=default ADDRESS_SANITIZER=enabled
os: linux
- env: BUILD_TYPE=cmake DO_CLANG_FORMAT_CHECK=1 CLANG_FORMAT=clang-format-5.0
os: linux
addons:
apt:
sources:
- llvm-toolchain-xenial-5.0
packages:
- clang-5.0
- clang-format-5.0
- env: BUILD_TYPE=android
compiler: clang
- env: BUILD_TYPE=bindings BINDING=jni
os: osx
language: java
jdk: openjdk13
compiler: clang
- env: BUILD_TYPE=bindings BINDING=jni
os: linux
language: java
jdk: openjdk8
compiler: clang
- env: BUILD_TYPE=bindings BINDING=jni BINDING_OPTS=android
os: linux
language: java
jdk: openjdk8
compiler: clang
### Customization note: python binding
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$BUILD_TYPE" == "android" ] ; then brew install binutils ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$BUILD_TYPE" == "valgrind" ] ; then brew install valgrind ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$BUILD_TYPE" == "bindings" -a "$BINDING" == "python" ] ; then brew upgrade python@3; brew upgrade python@2 ; fi
# Hand off to generated script for each BUILD_TYPE
### Customization note: credentials and condition for deploy
script: ./ci_build.sh
before_deploy: . ./ci_deploy.sh && ./ci_deploy_obs.sh
deploy:
provider: releases
api_key:
# To encrypt your access token run: `travis encrypt -r user/repo`
# secure: <encrypted github access token>
secure: "u4QpBmGyamzTNRBB3sN6ZCf1duxBMGnKWey+2OE6bn8veA/UCrPlxooTi9h706PFKHRMm5pqIhb4trbPuZB1uAo8X/ru2T8GIifDmKnDjxNUHiYhLYqv+AUi3VPwVtkiZ9wpzUhxIxkVbJQyrlQ73EXOJOa4X32jYNZxBQUttz8="
file_glob: true
file: ${ZYRE_DEPLOYMENT}
skip_cleanup: true
on:
branch: master
tags: true
condition: $TRAVIS_OS_NAME =~ (linux) && ($BUILD_TYPE =~ (default) || ($BUILD_TYPE =~ (bindings) && $BINDING =~ (jni)))