forked from zeromq/malamute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
88 lines (79 loc) · 3.24 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
# Travis CI script
# This is a skeleton created by zproject.
# You can add hand-written code here.
language: c
cache: ccache
os:
- linux
sudo: false
# 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)
env:
global:
# Note: Secure variables must be global!
#
# tokens to deploy releases on OBS and create/delete temporary branch on Github.
# 1) Create a token on https://github.com/settings/tokens/new with "public_repo"
# capability and encrypt it with travis encrypt --org -r <org>/<repo> GH_TOKEN="<token>"
# 2) 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>"
# 3) Uncomment the "secure" lines and paste the encrypted tokens
- secure: iH2hcROKwJygeLl+vwa+UPdrrc9iwGr0YZLacIEDUL1KzhkpUvgkYQU2TS0nnPJyRVcwRRw8IkX5ScWTl+r4rmtkbwrUik6mkhndQHB+lI8c6rBSXDh1broxOp3I/2H8OTs7xy+bzdos+FuP2bc47O4jlbqx15vr58JoM8Ew9tg=
- secure: FWkD9I8FdX1rIR29CcImL9p5Nvi4VWosn1pV8N9LPi+r/lLtoi0B++zrSUPlZU+cscrMdxJ4XOpUoSw00yshkRbKWFYFp2dFNkRlW116F+GV5qwrFqUXrgk0ppvjDqLSmypfXQpNgQMycywLhoZ2EnQelWZN4D7Up0JBSD7JzAE=
- secure: I+az1ijGwS+ZLtgi8Z857VnnlaR0AFuCHvPeDz/XCgpiF4XpciLTiY4Igox8ho+NPBNdwHHBZ8qzhsG+5C9W6e9qJ9ZQfEiaYLqS3BQeLtXTFsEujsazrEhv3C8VpboDGMQH2Berd9U95ud1hqpQf424ugbY/snm9qw2GZ+G8kY=
- CI_TIME=false
- CI_TRACE=false
- CI_CONFIG_QUIET=true
matrix:
- BUILD_TYPE=default
- BUILD_TYPE=cmake
- BUILD_TYPE=check_zproject
matrix:
include:
- env: BUILD_TYPE=valgrind
os: linux
dist: trusty
addons:
apt:
sources:
- 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'
packages:
- valgrind
- libzmq3-dev
- libczmq-dev
- env: BUILD_TYPE=check_zproto
os: linux
dist: trusty
services: docker
addons:
apt:
addons:
apt:
sources:
- 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'
packages:
- asciidoc
- xmlto
- zproject
- libzmq3-dev
- libczmq-dev
before_install:
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils ; fi
- if [ $TRAVIS_OS_NAME == "osx" -a $BUILD_TYPE == "valgrind" ] ; then brew install valgrind ; fi
# Hand off to generated script for each BUILD_TYPE
script: ./ci_build.sh
before_deploy: . ./ci_deploy.sh
deploy:
provider: releases
api_key:
secure: mltystRlPIK2o7ENfhNDxN+w0w2Hp/YYRysCzVDauU6Sqt9QcrhbFOWJ+WQHnvT4pH4+VwL7WDRwr44kjVgGkn3d/TAb9kwmckhhg3hPPxSAf2q3Qj7HN4rze5j1GLsy1A3cRR9uSkkbRcMZa+cAtLHKar1OPkBZL5WH2mnDqE4=
file_glob: true
file: ${MALAMUTE_DEPLOYMENT}
skip_cleanup: true
on:
branch: master
tags: true
condition: $TRAVIS_OS_NAME =~ (linux) && $BUILD_TYPE =~ (default)