This commit is contained in:
JustArchi
2018-06-01 20:11:20 +02:00
parent 7613fa9f70
commit 659cbb9781
3 changed files with 14 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ script:
- |
set -e
dotnet build ArchiSteamFarm -c "$CONFIGURATION" -o 'out/source' /nologo "/p:ASFVariant=generic"
dotnet build ArchiSteamFarm -c "$CONFIGURATION" -o 'out/source' /nologo
dotnet test ArchiSteamFarm.Tests -c "$CONFIGURATION" -o 'out/source' /nologo
publish() {

View File

@@ -49,6 +49,11 @@
<LinkerRootDescriptors Include="rootDescriptor.xml" />
</ItemGroup>
<!-- Workaround for https://github.com/Microsoft/msbuild/issues/3350 -->
<ItemGroup>
<CoreCompileCache Include="$(DefineConstants)" />
</ItemGroup>
<ItemGroup>
<Compile Update="Localization\Strings.Designer.cs">
<AutoGen>True</AutoGen>

View File

@@ -31,7 +31,7 @@ before_build:
dotnet --info
if ($LastExitCode -ne 0) {
throw "Command failed."
throw "Last command failed."
}
build_script:
- pwsh: >-
@@ -42,10 +42,10 @@ build_script:
$ProgressPreference = 'SilentlyContinue'
dotnet build ArchiSteamFarm -c "$env:CONFIGURATION" -o 'out\source' /nologo "/p:ASFVariant=generic"
dotnet build ArchiSteamFarm -c "$env:CONFIGURATION" -o 'out\source' /nologo
if ($LastExitCode -ne 0) {
throw "Command failed."
throw "Last command failed."
}
test_script:
- pwsh: >-
@@ -59,7 +59,7 @@ test_script:
dotnet test ArchiSteamFarm.Tests -c "$env:CONFIGURATION" -o 'out\source' /nologo
if ($LastExitCode -ne 0) {
throw "Command failed."
throw "Last command failed."
}
after_test:
- pwsh: >-
@@ -86,7 +86,7 @@ after_test:
}
if ($LastExitCode -ne 0) {
throw "Command failed."
throw "Last command failed."
}
# If we include any helper scripts for this variant, copy them to output directory
@@ -99,7 +99,7 @@ after_test:
tools\rcedit\rcedit-x64.exe "ArchiSteamFarm\out\$Variant\ArchiSteamFarm.exe" --set-icon 'resources\ASF.ico'
if ($LastExitCode -ne 0) {
throw "Command failed."
throw "Last command failed."
}
} else {
Copy-Item 'resources\ASF.ico' -Destination "ArchiSteamFarm\out\$Variant\ArchiSteamFarm.ico"
@@ -121,14 +121,14 @@ after_test:
7z a -bd -tzip -mm=Deflate64 $zipArgs "ArchiSteamFarm\out\ASF-$Variant.zip" "$env:APPVEYOR_BUILD_FOLDER\ArchiSteamFarm\out\$Variant\*"
if ($LastExitCode -ne 0) {
throw "Command failed."
throw "Last command failed."
}
# TODO: Change me to Push-AppveyorArtifact once https://github.com/appveyor/ci/issues/2183 is fixed
appveyor PushArtifact "ArchiSteamFarm\out\ASF-$Variant.zip" -FileName "ASF-$Variant.zip" -DeploymentName "ASF-$Variant.zip"
if ($LastExitCode -ne 0) {
throw "Command failed."
throw "Last command failed."
}
}