Skip to content

Commit

Permalink
Infrastructure: improve resiliency ptb changelogs (#4804)
Browse files Browse the repository at this point in the history
* Generate changelog for macOS builds

* Show generated changlog in appveyor builds
  • Loading branch information
vadi2 committed Feb 14, 2021
1 parent 290d4e9 commit df9f917
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CI/appveyor.after_success.ps1
Expand Up @@ -157,9 +157,10 @@ if ("$Env:APPVEYOR_REPO_TAG" -eq "false" -and -Not $Script:PublicTestBuild) {
$Script:DownloadedFeed = [System.IO.Path]::GetTempFileName()
Invoke-WebRequest "https://feeds.dblsqd.com/MKMMR7HNSP65PquQQbiDIw/public-test-build/win/x86" -OutFile $Script:DownloadedFeed
Write-Output "=== Generating a changelog ==="
pushd "$Env:APPVEYOR_BUILD_FOLDER\CI\"
Push-Location "$Env:APPVEYOR_BUILD_FOLDER\CI\"
$Script:Changelog = lua "$Env:APPVEYOR_BUILD_FOLDER\CI\generate-ptb-changelog.lua" --releasefile $Script:DownloadedFeed
popd
Pop-Location
Write-Output $Script:Changelog
Write-Output "=== Creating release in Dblsqd ==="
dblsqd release -a mudlet -c public-test-build -m $Script:Changelog "${Env:VERSION}${Env:MUDLET_VERSION_BUILD}".ToLower()

Expand Down
9 changes: 8 additions & 1 deletion CI/travis.osx.after_success.sh
Expand Up @@ -133,8 +133,15 @@ if [ "${DEPLOY}" = "deploy" ]; then
dblsqd login -e "https://api.dblsqd.com/v1/jsonrpc" -u "${DBLSQD_USER}" -p "${DBLSQD_PASS}"

if [ "${public_test_build}" == "true" ]; then
echo "=== Downloading release feed ==="
downloadedfeed=$(mktemp)
wget "https://feeds.dblsqd.com/MKMMR7HNSP65PquQQbiDIw/public-test-build/mac/x86_64" --output-document="$downloadedfeed"
echo "=== Generating a changelog ==="
cd "${SOURCE_DIR}" || exit
changelog=$(lua "${SOURCE_DIR}/CI/generate-ptb-changelog.lua" --releasefile "${downloadedfeed}")

echo "=== Creating release in Dblsqd ==="
dblsqd release -a mudlet -c public-test-build -m "(test release message here)" "${VERSION}${MUDLET_VERSION_BUILD}" || true
dblsqd release -a mudlet -c public-test-build -m "${changelog}" "${VERSION}${MUDLET_VERSION_BUILD}" || true

# release registration and uploading will be manual for the time being
else
Expand Down

0 comments on commit df9f917

Please sign in to comment.