|
2 | 2 | # This is a skeleton created by zproject.
|
3 | 3 | # You can add hand-written code here.
|
4 | 4 |
|
5 |
| -language: c |
| 5 | +language: |
| 6 | +- c |
6 | 7 |
|
7 |
| -cache: ccache |
| 8 | +cache: |
| 9 | +- ccache |
8 | 10 |
|
9 | 11 | os:
|
10 | 12 | - linux
|
11 | 13 |
|
| 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. |
12 | 19 | sudo: false
|
| 20 | +#sudo: required |
13 | 21 |
|
14 |
| -services: |
15 |
| -- docker |
| 22 | +#dist: |
| 23 | +#- trusty |
| 24 | + |
| 25 | +#services: |
| 26 | +#- docker |
16 | 27 |
|
17 | 28 | # Set CI_TIME=true to enable build-step profiling in Travis
|
18 | 29 | # Set CI_TRACE=true to enable shell script tracing in Travis
|
|
22 | 33 | - CI_TIME=false
|
23 | 34 | - CI_TRACE=false
|
24 | 35 | - 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: |
25 | 46 | matrix:
|
26 | 47 | - BUILD_TYPE=default
|
27 | 48 | - BUILD_TYPE=default-Werror
|
28 | 49 | - BUILD_TYPE=cmake
|
29 | 50 | # - BUILD_TYPE=android
|
30 | 51 | # - BUILD_TYPE=check-py
|
31 | 52 |
|
| 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 | + |
32 | 83 | matrix:
|
33 | 84 | 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 |
34 | 93 | - env: BUILD_TYPE=valgrind
|
35 | 94 | os: linux
|
36 | 95 | dist: trusty
|
37 |
| - sudo: required |
38 | 96 | addons:
|
39 | 97 | apt:
|
| 98 | + sources: *pkg_src_zeromq_ubuntu14 |
40 | 99 | packages:
|
41 | 100 | - 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 |
54 | 110 |
|
55 | 111 | 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 |
57 | 114 |
|
58 | 115 | # Hand off to generated script for each BUILD_TYPE
|
59 | 116 | script: ./ci_build.sh
|
60 |
| -before_deploy: . ./ci_deploy.sh |
| 117 | +before_deploy: . ./ci_deploy.sh && ./ci_deploy_obs.sh |
61 | 118 | deploy:
|
62 | 119 | provider: releases
|
63 | 120 | api_key:
|
|
0 commit comments