Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed May 6, 2020
2 parents 4e52985 + b85d795 commit 1bab1ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion travis/build_new_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ hubauth="Authorization: token ${GITHUB_TOKEN}"
source pkgvars

# set default values for certain packaging variables
hubproj="${hubproj:-${pkgname}}"
nightlyref="${nightlyref:-master}"
releasepg="${releasepg:-9.6,10}"
nightlypg="${nightlypg:-${releasepg}}"
Expand All @@ -32,11 +31,13 @@ latestpg=$(echo "${nightlypg}" | tr ',' '\n' | sort -t. -k1,1n -k2,2n | tail -n1
case "${PLATFORM_TYPE}" in
debian|ubuntu)
pkgflavor='deb'
pkgname="${deb_pkgname:-${pkgname}}"
pkgfull="postgresql-${latestpg}-${pkgname}"
pkgarch="amd64"
;;
el|ol)
pkgflavor='rpm'
pkgname="${rpm_pkgname:-${pkgname}}"
pkgfull="${pkgname}_${latestpg//./}"
pkgarch="x86_64"
;;
Expand All @@ -46,6 +47,8 @@ case "${PLATFORM_TYPE}" in
;;
esac

hubproj="${hubproj:-${pkgname}}"

pkgapiurl="https://packagecloud.io/api/v1/repos/citusdata/${PKG_REPOTYPE}-nightlies"
pkgapiurl+="/package/${pkgflavor}/${TARGET_PLATFORM}/${pkgfull}/${pkgarch}/versions.json"

Expand Down
5 changes: 4 additions & 1 deletion travis/build_new_release
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ source pkgvars

# set default values for certain packaging variables
declare pkglatest # to make shellcheck happy
hubproj="${hubproj:-${pkgname}}"
nightlyref="${nightlyref:-master}"
releasepg="${releasepg:-9.6,10}"
nightlypg="${nightlypg:-}"
Expand All @@ -33,6 +32,7 @@ versioning="${versioning:-simple}"
case "${PLATFORM_TYPE}" in
debian|ubuntu)
pkgflavor='deb'
pkgname="${deb_pkgname:-${pkgname}}"
pkgfull="postgresql-${latestpg}-${pkgname}"

# add minor/major version to package name if using fancy versioning
Expand All @@ -46,6 +46,7 @@ case "${PLATFORM_TYPE}" in
;;
el|ol)
pkgflavor='rpm'
pkgname="${rpm_pkgname:-${pkgname}}"

# add minor/major version to package name if using fancy versioning
if [ "${versioning}" == 'fancy' ]; then
Expand All @@ -64,6 +65,8 @@ case "${PLATFORM_TYPE}" in
;;
esac

hubproj="${hubproj:-${pkgname}}"

pkgapiurl="https://packagecloud.io/api/v1/repos/citusdata/${PKG_REPOTYPE}"
pkgapiurl+="/package/${pkgflavor}/${TARGET_PLATFORM}/${pkgfull}/${pkgarch}/versions.json"

Expand Down

0 comments on commit 1bab1ce

Please sign in to comment.