Skip to content

Commit 8b7c70d

Browse files
committed
updates to appveyor to create a build matrix
1 parent 8de3cd4 commit 8b7c70d

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
lines changed
File renamed without changes.

appveyor.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,27 @@ assembly_info:
3131
assembly_file_version: '{version}'
3232
assembly_informational_version: $(APPVEYOR_BUILD_VERSION)
3333

34+
environment:
35+
matrix:
36+
- BUILD_TARGET: base
37+
NUSPEC_FILE: CommandLine
38+
- BUILD_TARGET: fsharp
39+
NUSPEC_FILE: CommandLine.fsharp
40+
3441
build_script:
35-
- cmd: build.cmd
42+
- cmd: build.cmd %BUILD_TARGET%
3643

3744
after_build:
3845
- ps: |
39-
get-childitem build\* -include *.dll | foreach-object { "{0}`t{1}" -f $_.Name, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion }
46+
powershell get-childitem Release\* -include *.dll | foreach-object { "{0}`t{1}" -f $_.Path, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion }
4047
41-
nuget pack CommandLine.nuspec -version "$env:APPVEYOR_BUILD_VERSION"
48+
.\build-nuget-pack.cmd $env:BUILD_TARGET $env:NUSPEC_FILE
4249
4350
test: off #tests handled within FAKE
4451

4552
artifacts:
46-
- path: '*.nupkg'
47-
name: NugetPackage
53+
- path: 'Release/**/*.nupkg'
54+
name: NugetPackages
4855

4956
on_failure:
5057
- cmd: |
@@ -55,8 +62,8 @@ deploy:
5562
- provider: NuGet
5663
api_key:
5764
secure: +Zxb8M5W+UJV1yd9n8seu3PvH/hGNPEmgriGBnsSmtxjKPQAJ4+iL7tKAmfPHAuG
58-
artifact: 'NuGetPackage'
65+
artifact: 'NuGetPackages'
5966
on:
60-
branch: master
67+
branch: /master|v\d+\.\d+\.\d+[.*]/
6168
APPVEYOR_REPO_TAG: true
6269

build-nuget-pack.cmd

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@ECHO OFF
2+
setlocal
3+
4+
if "%1" == "" goto :USAGE
5+
6+
pushd Release\%1
7+
8+
copy ..\..\README.md
9+
copy ..\..\CommandLine.%1.nuspec .
10+
nuget pack "CommandLine.%1.nuspec" -properties Version=%APPVEYOR_BUILD_VERSION%
11+
if errorlevel 1 popd&exit 1 /b
12+
goto :END
13+
14+
:USAGE
15+
16+
:END
17+
popd

0 commit comments

Comments
 (0)