mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-17 08:34:00 +00:00
Problem: Deploying release artifacts is a manual process Solution: Use travis to deploy these artifacts automatically.
The deployment is triggered by tagging on the zeromq/libzmq repository. Of the many builds travis is checking only the default one with libsodium and drafts disabled is used for deployment. For now the results of `make distcheck` are deployed as well as their md5 and sha1 hash sums. Further changes may upload a generated Changelog as well.
This commit is contained in:
parent
e1577f21dd
commit
45c46c7af3
16
.travis.yml
16
.travis.yml
@ -34,3 +34,19 @@ before_script:
|
|||||||
# Build and check this project
|
# Build and check this project
|
||||||
script:
|
script:
|
||||||
- ./autogen.sh && ./configure --with-libsodium --prefix=${BUILD_PREFIX} && make distcheck
|
- ./autogen.sh && ./configure --with-libsodium --prefix=${BUILD_PREFIX} && make distcheck
|
||||||
|
|
||||||
|
# Deploy tags
|
||||||
|
before_deploy:
|
||||||
|
- . ./ci_deploy.sh
|
||||||
|
deploy:
|
||||||
|
provider: releases
|
||||||
|
api_key:
|
||||||
|
secure: "VIOyO6gR+E4PH9i48eq8gF15PYTZamUOLwbaa4nnwCgmKy+iiwIrXBF/FZ9SdzjeUUSrK0v1gAfC389U+ZBjdD0NQTcSZ9UngvSALgtI7w4gQMJ09G74Sowcm21PIO/Pn3V4xpO0ciJ7xb2aGP6zhbGOiK/nmv8MXUM/PzxvH6A="
|
||||||
|
file_glob: true
|
||||||
|
file: ${ZEROMQ4X_DEPLOYMENT}
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
repo: zeromq/zeromq4-x
|
||||||
|
branch: master
|
||||||
|
tags: true
|
||||||
|
condition: "$TRAVIS_OS_NAME =~ (linux)"
|
||||||
|
20
ci_deploy.sh
Executable file
20
ci_deploy.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ $TRAVIS_OS_NAME =~ (linux) ]]; then
|
||||||
|
# Tell travis to deploy all files in dist
|
||||||
|
mkdir dist
|
||||||
|
export ZEROMQ4X_DEPLOYMENT=dist/*
|
||||||
|
# Move archives to dist
|
||||||
|
mv *.tar.gz dist
|
||||||
|
mv *.zip dist
|
||||||
|
# Generate hash sums
|
||||||
|
cd dist
|
||||||
|
md5sum *.zip *.tar.gz > MD5SUMS
|
||||||
|
sha1sum *.zip *.tar.gz > SHA1SUMS
|
||||||
|
cd -
|
||||||
|
else
|
||||||
|
export ZEROMQ4X_DEPLOYMENT=""
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user