-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Ensuring deploy and release mode works
This is a combination of 11 commits. CI: Multiple minor fixes to release scripts CI: Fix bad string interpolation CI: Relative path required by artifact uploader CI: fix missing function in tag script CI: shots in the dark So dark CI: redirect git push stderr to stdout CI: shots in the dark CI: try not setting ErrorActionPreference CI: stupid mistake CI: Eliminate Release build from test matrix to simplify deploy process Original hash: 5d8a9d3
- Loading branch information
Showing
4 changed files
with
50 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,6 @@ matrix: | |
platform: | ||
- Any CPU | ||
|
||
configuration: | ||
- Debug | ||
- Release | ||
|
||
# Attempt to limit the number of commits to clone - our project has a LOT of history | ||
# TODO: drop this to about ~100 later on | ||
|
@@ -57,29 +54,41 @@ before_build: | |
- nuget restore | ||
|
||
build_script: | ||
- echo "Building Debug" | ||
- ps: > | ||
msbuild | ||
"C:\projects\audio-analysis\AudioAnalysis\AudioAnalysis2012.sln" /m /verbosity:minimal | ||
/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | ||
/p:WarningLevel=0 /p:RunCodeAnalysis=false | ||
/p:Configuration=$env:configuration /property:Platform=$env:platform | ||
/p:Configuration=Debug /property:Platform=$env:platform | ||
- echo "Building Release" | ||
- ps: > | ||
msbuild | ||
"C:\projects\audio-analysis\AudioAnalysis\AudioAnalysis2012.sln" /m /verbosity:minimal | ||
/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | ||
/p:WarningLevel=0 /p:RunCodeAnalysis=false | ||
/p:Configuration=Release /property:Platform=$env:platform | ||
after_build: | ||
# package up artifacts | ||
# defined env vars: $env:ApPackage{Configuration} , $env:ApVersion , $env:ApName{Configuration} | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- ps: . .\package.ps1 "Debug" | ||
- ps: . .\package.ps1 "Release" | ||
|
||
test: | ||
assemblies: | ||
only: | ||
#- "C:\Work\Github\audio-analysis\Acoustics\Acoustics.Test\bin\Debug\Acoustics.Test.dll" | ||
#- "C:\Work\Github\audio-analysis\AudioAnalysis\AED\Test\bin\Debug\Test.dll" | ||
- '**\Acoustics.Test.dll' | ||
|
||
before_package: | ||
# package up artifacts | ||
# defined env vars: $env:ApPackage , $env:ApVersion , $env:ApName | ||
- ps: . .\package.ps1 $env:configuration | ||
#- "Acoustics\Acoustics.Test\bin\Debug\Acoustics.Test.dll" | ||
- '**bin\Debug\Acoustics.Test.dll' | ||
|
||
# Upload previously generated artifacts | ||
artifacts: | ||
- path: $(ApPackage) | ||
name: $(ApName) | ||
- path: '$(ApPackageDebug)' | ||
name: '$(ApNameDebug)' | ||
- path: '$(ApPackageRelease)' | ||
name: '$(ApNameRelease)' | ||
|
||
before_deploy: | ||
# Enable git credential store | ||
|
@@ -89,6 +98,9 @@ before_deploy: | |
# add our auth token to the cred store | ||
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GH_CREATE_RELEASES_TOKEN):[email protected]`n" | ||
# tag if needed, and output $env:ApTagName | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
# Buggy authentication with git-lfs | ||
- git config lfs.https://github.com/QutBioacoustics/audio-analysis.git/info/lfs.locksverify false | ||
- ps: . .\tag.ps1 $env:ApVersion | ||
# prepare release strings: $env:ApReleaseMessage, $env:ApReleaseTitle | ||
- ps: . .\release.ps1 $env:ApTagName $true | ||
|
@@ -99,7 +111,7 @@ deploy: | |
release: "$(ApReleaseTitle)" | ||
description: "$(ApReleaseMessage)" | ||
auth_token: $(GH_CREATE_RELEASES_TOKEN) | ||
artifact: $(ApName) | ||
artifact: $(ApNameDebug),$(ApNameRelease) | ||
prerelease: true | ||
on: | ||
# Do not create new releases unless this is the master branch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters