-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Nerdbank.GitVersioning to automate generation of assembly and nug…
…et package versions
- Loading branch information
1 parent
a8d05a1
commit cdb43d4
Showing
7 changed files
with
100 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changelog | ||
|
||
## v1.2 - 2018.09.15 | ||
- Use [Nerdbank.GitVersioning](https://github.com/AArnott/Nerdbank.GitVersioning) to automate generation of assembly | ||
and nuget package versions. | ||
- Update [Gremit](https://github.com/skbkontur/gremit) dependency to v2.3.6. | ||
- Fix bugs in `CallExpressionEmitter` (PR #5). | ||
- Support `enum`, `decimal`, and `Nullable<TConstant>` as types of constants in expressions passed | ||
to `LambdaCompiler.CompileToMethod()` (PR #6). | ||
|
||
## v1.1 - 2018.01.07 | ||
- Support .NET Standard 2.0. | ||
- Switch to SDK-style project format and dotnet core build tooling. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,58 @@ | ||
version: '{build}' | ||
|
||
skip_commits: | ||
files: | ||
- '**/*.md' | ||
|
||
image: Visual Studio 2017 | ||
|
||
init: | ||
- cmd: git config --global core.autocrlf false | ||
- ps: | | ||
$ErrorActionPreference = "Stop" | ||
$tagName = $env:APPVEYOR_REPO_TAG_NAME | ||
if ($tagName -match '^v\d+\.\d+') # tag name starts with 'vX.Y' | ||
{ | ||
$env:SHOULD_PUBLISH_NUGET_PACKAGE = "true" | ||
Write-Host "Will publish nuget package for $tagName tag" -ForegroundColor "Green" | ||
if ($tagName -match '^v\d+\.\d+-release$') # tag name matches 'vX.Y-release' | ||
{ | ||
$env:SHOULD_CREATE_RELEASE = "true" | ||
Write-Host "Will create release for $tagName tag" -ForegroundColor "Green" | ||
} | ||
} | ||
nuget: | ||
disable_publish_on_pr: true | ||
|
||
before_build: | ||
- cmd: dotnet --info | ||
- cmd: dotnet restore ./GrobExp.Compiler.sln --verbosity m | ||
|
||
build_script: | ||
- cmd: dotnet build --configuration Release ./GrobExp.Compiler.sln | ||
- cmd: dotnet pack --no-build --configuration Release ./GrobExp.Compiler.sln | ||
|
||
test_script: | ||
- cmd: dotnet test --no-build --configuration Release --filter TestCategory!=LongRunning ./GrobExp.Compiler.Tests/GrobExp.Compiler.Tests.csproj | ||
|
||
artifacts: | ||
- path: './GrobExp.Compiler/bin/Release/*.nupkg' | ||
|
||
deploy: | ||
- provider: NuGet | ||
server: https://nuget.org | ||
api_key: | ||
secure: dzTnT0xSlPrHnrG06cj354nTN4lXWhfh4ZCJ1910I3VnNdvbx0rQFLTyJ5l1+bgB | ||
skip_symbols: true | ||
on: | ||
SHOULD_PUBLISH_NUGET_PACKAGE: true | ||
|
||
- provider: GitHub | ||
tag: $(APPVEYOR_REPO_TAG_NAME) | ||
auth_token: | ||
secure: y8dDOcAtq4U1MTDJFX8f23xsvyFU1u4bhwr9Lzbkf2revNWPPTifBkWghris9v8i | ||
draft: false | ||
prerelease: false | ||
on: | ||
SHOULD_CREATE_RELEASE: true |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", | ||
"version": "1.2", | ||
"assemblyVersion": { | ||
"precision": "build" | ||
}, | ||
"publicReleaseRefSpec": [ | ||
"^refs/heads/master$", | ||
"^refs/tags/v\\d+\\.\\d+" | ||
], | ||
"nugetPackageVersion": { | ||
"semVer": 2 | ||
}, | ||
"cloudBuild": { | ||
"setVersionVariables": true, | ||
"buildNumber": { | ||
"enabled": false | ||
} | ||
} | ||
} |