Skip to content

Commit e52bdb3

Browse files
committed
Problem: travis config out of date with zproject
Solution: regenerate it
1 parent 3ad28b2 commit e52bdb3

File tree

1 file changed

+76
-19
lines changed

1 file changed

+76
-19
lines changed

.travis.yml

+76-19
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,28 @@
22
# This is a skeleton created by zproject.
33
# You can add hand-written code here.
44

5-
language: c
5+
language:
6+
- c
67

7-
cache: ccache
8+
cache:
9+
- ccache
810

911
os:
1012
- linux
1113

14+
# Note: some packages or dependencies may require extended permissions
15+
# which take longer to set up and boot. If your project does not build
16+
# in the default container with sudo==false, consider requiring a docker
17+
# image and/or a newer Ubuntu Trusty baseline VM, by uncommenting below.
18+
# See the current docs on http://travis-ci.org for up-to-date options.
1219
sudo: false
20+
#sudo: required
1321

14-
services:
15-
- docker
22+
#dist:
23+
#- trusty
24+
25+
#services:
26+
#- docker
1627

1728
# Set CI_TIME=true to enable build-step profiling in Travis
1829
# Set CI_TRACE=true to enable shell script tracing in Travis
@@ -22,42 +33,88 @@ env:
2233
- CI_TIME=false
2334
- CI_TRACE=false
2435
- CI_CONFIG_QUIET=true
36+
# tokens to deploy releases on OBS and create/delete temporary branch on Github.
37+
# 1) Create a token on https://github.com/settings/tokens/new with "public_repo"
38+
# capability and encrypt it with travis encrypt --org -r <org>/<repo> GH_TOKEN="<token>"
39+
# 2) Create 2 OBS tokens with osc token --create network:messaging:zeromq:release-<stable|draft> <project>
40+
# encrypt them with travis encrypt --org -r <org>/<repo> OBS_<STABLE|DRAFT>_TOKEN="<token>"
41+
# 3) Uncomment the three "secure" lines and paste the three generated hashed
42+
# strings, which include each token's name, as parameters
43+
#- secure:
44+
#- secure:
45+
#- secure:
2546
matrix:
2647
- BUILD_TYPE=default
2748
- BUILD_TYPE=default-Werror
2849
- BUILD_TYPE=cmake
2950
# - BUILD_TYPE=android
3051
# - BUILD_TYPE=check-py
3152

53+
pkg_deps_prereqs: &pkg_deps_prereqs
54+
- libzmq3-dev
55+
- libczmq-dev
56+
- libzyre-dev
57+
58+
pkg_deps_doctools: &pkg_deps_doctools
59+
- asciidoc
60+
- xmlto
61+
62+
pkg_deps_devtools: &pkg_deps_devtools
63+
- git
64+
65+
pkg_src_zeromq_ubuntu12: &pkg_src_zeromq_ubuntu12
66+
- sourceline: 'deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_12.04/ ./'
67+
key_url: 'http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_12.04/Release.key'
68+
69+
pkg_src_zeromq_ubuntu14: &pkg_src_zeromq_ubuntu14
70+
- sourceline: 'deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_14.04/ ./'
71+
key_url: 'http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-draft/xUbuntu_14.04/Release.key'
72+
73+
# Note: refer to ubuntu14 if you use dist==Trusty
74+
# Also note that as of early 2017, either dist==trusty or services==docker
75+
# is needed for C++11 support; docker envs are usually faster to start up
76+
addons:
77+
apt:
78+
sources: *pkg_src_zeromq_ubuntu14
79+
packages: &pkg_deps_common
80+
- *pkg_deps_devtools
81+
- *pkg_deps_prereqs
82+
3283
matrix:
3384
include:
85+
- env: BUILD_TYPE=default-with-docs
86+
os: linux
87+
addons:
88+
apt:
89+
sources: *pkg_src_zeromq_ubuntu14
90+
packages:
91+
- *pkg_deps_common
92+
- *pkg_deps_doctools
3493
- env: BUILD_TYPE=valgrind
3594
os: linux
3695
dist: trusty
37-
sudo: required
3896
addons:
3997
apt:
98+
sources: *pkg_src_zeromq_ubuntu14
4099
packages:
41100
- valgrind
42-
43-
addons:
44-
sources:
45-
- sourceline: 'deb http://download.opensuse.org/repositories/home:/zeromq:/git-draft/xUbuntu_12.04/ ./'
46-
key_url: 'http://download.opensuse.org/repositories/home:/zeromq:/git-draft/xUbuntu_12.04/Release.key'
47-
apt:
48-
packages:
49-
- asciidoc
50-
- xmlto
51-
# - libzmq3-dev
52-
# - libczmq-dev
53-
# - libzyre-dev
101+
- *pkg_deps_common
102+
- env: BUILD_TYPE=default ADDRESS_SANITIZER=enabled
103+
os: linux
104+
dist: trusty
105+
addons:
106+
apt:
107+
sources: *pkg_src_zeromq_ubuntu14
108+
packages:
109+
- *pkg_deps_common
54110

55111
before_install:
56-
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils valgrind ; fi
112+
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$BUILD_TYPE" == "android" ] ; then brew install binutils ; fi
113+
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$BUILD_TYPE" == "valgrind" ] ; then brew install valgrind ; fi
57114

58115
# Hand off to generated script for each BUILD_TYPE
59116
script: ./ci_build.sh
60-
before_deploy: . ./ci_deploy.sh
117+
before_deploy: . ./ci_deploy.sh && ./ci_deploy_obs.sh
61118
deploy:
62119
provider: releases
63120
api_key:

0 commit comments

Comments
 (0)