2016-05-04 22:05:40 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-04-29 17:42:03 +01:00
|
|
|
# do NOT set -x or it will log the secret tokens!
|
2016-05-04 22:05:40 +02:00
|
|
|
set -e
|
|
|
|
|
|
|
|
if [[ $BUILD_TYPE == "default" && $CURVE == "libsodium" && -z $DRAFT ]]; then
|
|
|
|
# Tell travis to deploy all files in dist
|
|
|
|
mkdir dist
|
|
|
|
export LIBZMQ_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 -
|
2017-04-29 17:42:03 +01:00
|
|
|
|
2020-05-11 19:31:23 +01:00
|
|
|
# Trigger source run on new tag on OBS. The latest tag will be fetched.
|
|
|
|
if [ -n "${OBS_STABLE_TOKEN}" ]; then
|
2017-04-29 17:42:03 +01:00
|
|
|
curl -H "Authorization: Token ${OBS_STABLE_TOKEN}" -X POST https://api.opensuse.org/trigger/runservice
|
2020-05-11 19:31:23 +01:00
|
|
|
fi
|
|
|
|
if [ -n "${OBS_DRAFT_TOKEN}" ]; then
|
2017-04-29 17:42:03 +01:00
|
|
|
curl -H "Authorization: Token ${OBS_DRAFT_TOKEN}" -X POST https://api.opensuse.org/trigger/runservice
|
|
|
|
fi
|
2016-05-04 22:05:40 +02:00
|
|
|
else
|
|
|
|
export LIBZMQ_DEPLOYMENT=""
|
|
|
|
fi
|