Skip to content

Commit 551b6d2

Browse files
authored
Merge pull request #237 from msgpack/fix/appveyor
Fix appveyor CI script
2 parents cf0b154 + 08176f1 commit 551b6d2

File tree

5 files changed

+44
-34
lines changed

5 files changed

+44
-34
lines changed

MsgPack.nuspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,7 @@ This package provides MessagePack serialization/deserialization APIs. This pacak
8686
<files>
8787
<file src="bin\**\*.dll" target="lib" exclude="**\System.*;**\Microsoft.*;**\Mono.*" />
8888
<file src="bin\**\*.XML" target="lib" exclude="**\System.*;**\Microsoft.*;**\Mono.*" />
89+
<file src="bin\**\*.pdb" target="lib" exclude="**\System.*;**\Microsoft.*;**\Mono.*" />
90+
<file src="src\**\*.cs" target="src" />
8991
</files>
9092
</package>

appveyor-debug.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,20 @@ version: '{branch}-{build}'
22
image: Visual Studio 2017
33
skip_tags: true
44
configuration: Debug
5-
init:
6-
- cmd: >-
7-
cd \
8-
9-
appveyor DownloadFile http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
10-
11-
7z x android-sdk_r24.4.1-windows.zip > nul
12-
13-
cd %APPVEYOR_BUILD_FOLDER%
145
assembly_info:
156
patch: true
167
file: '**\*AssemblyInfo.cs'
178
assembly_version: $(AssemblyBaseVersion).0
189
assembly_file_version: $(AssemblyBaseVersion).{build}
1910
assembly_informational_version: $(PackageVersion)
20-
environment:
21-
ANDROID_HOME: C:\android-sdk-windows
2211
install:
23-
- ps: >-
24-
cd ./build
12+
- cmd: >-
13+
cd .\build
2514
15+
UpdateAndroidSdk.cmd
16+
- ps: >-
2617
./SetBuildEnv.ps1
2718
28-
./UpdateAndroidSdk.cmd
29-
3019
cd ..
3120
build_script:
3221
- ps: >-
@@ -36,11 +25,15 @@ build_script:
3625
3726
./Build.ps1
3827
28+
if ( $LastExitCode -ne 0 )
29+
{
30+
Write-Error "Failed to build."
31+
exit 1
32+
}
33+
3934
cd ..
4035
test_script:
4136
- cmd: >-
4237
cd ./build
4338
4439
./RunUnitTests.cmd
45-
46-
cd ..

appveyor-release.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,23 @@ branches:
44
only:
55
- master
66
- 0.7
7+
- 0.8
8+
- 0.9
79
configuration: Release
8-
init:
9-
- cmd: >-
10-
cd \
11-
12-
appveyor DownloadFile http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
13-
14-
7z x android-sdk_r24.4.1-windows.zip > nul
15-
16-
cd %APPVEYOR_BUILD_FOLDER%
1710
assembly_info:
1811
patch: true
1912
file: '**\*AssemblyInfo.cs'
2013
assembly_version: $(AssemblyBaseVersion).0
2114
assembly_file_version: $(AssemblyBaseVersion).{build}
2215
assembly_informational_version: $(PackageVersion)
23-
environment:
24-
ANDROID_HOME: C:\android-sdk-windows
2516
install:
26-
- ps: >-
27-
cd ./build
17+
- cmd: >-
18+
cd .\build
2819
20+
UpdateAndroidSdk.cmd
21+
- ps: >-
2922
./SetBuildEnv.ps1
3023
31-
./UpdateAndroidSdk.cmd
32-
3324
cd ..
3425
build_script:
3526
- ps: >-
@@ -39,12 +30,36 @@ build_script:
3930
4031
./Build.ps1
4132
33+
if ( $LastExitCode -ne 0 )
34+
{
35+
Write-Error "Failed to build."
36+
exit 1
37+
}
38+
4239
appveyor PushArtifact "../dist/MsgPack.Cli.${env:PackageVersion}.nupkg"
4340
41+
if ( $LastExitCode -ne 0 )
42+
{
43+
Write-Error "Failed to publish nupkg."
44+
exit 1
45+
}
46+
4447
appveyor PushArtifact "../dist/MsgPack.Cli.${env:PackageVersion}.symbols.nupkg"
4548
49+
if ( $LastExitCode -ne 0 )
50+
{
51+
Write-Error "Failed to publish symbol nupkg."
52+
exit 1
53+
}
54+
4655
appveyor PushArtifact "../dist/MsgPack.Cli.${env:PackageVersion}.zip"
4756
57+
if ( $LastExitCode -ne 0 )
58+
{
59+
Write-Error "Failed to publish zip."
60+
exit 1
61+
}
62+
4863
cd ..
4964
deploy:
5065
- provider: Environment

build/Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ if ( $LastExitCode -ne 0 )
147147

148148
if ( $buildConfig -eq 'Release' )
149149
{
150-
& $msbuild ../src/MsgPack/MsgPack.csproj /t:pack /p:Configuration=$buildConfig /p:NuspecProperties=version=$env:PackageVersion
150+
& $msbuild ../src/MsgPack/MsgPack.csproj /t:pack /p:Configuration=$buildConfig /p:IncludeSymbols=true /p:IncludeSource=true /p:NuspecProperties=version=$env:PackageVersion
151151

152152
Move-Item ../bin/*.nupkg ../dist/
153153
Copy-Item ../bin/* ./MsgPack-CLI/ -Recurse -Exclude @("*.vshost.*")

build/UpdateAndroidSdk.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
echo y | "%ANDROID_HOME%/tools/android.bat" --silent update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
1+
echo y | "%ProgramFiles(x86)%\Android\android-sdk\tools\android.bat" --silent update sdk --no-ui --all --filter android-10,platform-tools,tools,build-tools-23.0.3

0 commit comments

Comments
 (0)