This repository was archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
use Nerdbank.GitVersioning #100
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
392a8d6
add Nerdbank.GitVersioning
6070b38
temp remove SourceLink
ctaggart 2d20555
try switching Froto.Parser.Test from netsoreapp2.0 to 2.1
ctaggart 4e608ab
use Froto.sln
ctaggart c893207
latest dotnet 2.2.3
ctaggart 60cd87e
try 2.2.2
ctaggart baef5e5
sdk is 2.2.105
ctaggart 563fa11
dist: xenial
ctaggart 63cd350
remove Froto.TypeProvider from Froto.sln
ctaggart 17a6fa6
back to netcoreapp2.0
ctaggart c9ceb50
git fetch --unshallow
ctaggart 45371b4
Revert "fix Enum in message body error (#96)"
ctaggart f06d55a
add version.json
ctaggart 8a37bb2
disable nbgv for exe
ctaggart d66327d
use previous SourceLink
ctaggart 7cf54c4
PrivateAssets="All"
ctaggart d29f23e
upgrade to Nerdbank.GitVersioning" Version="2.3.136
ctaggart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,8 +1,10 @@ | ||
language: csharp | ||
dist: xenial | ||
mono: none | ||
dotnet: 2.1.3 | ||
dotnet: 2.2.105 | ||
script: | ||
- dotnet restore Froto.unix.sln | ||
- dotnet build Froto.unix.sln -c Release | ||
- git fetch --unshallow | ||
- dotnet restore Froto.sln | ||
- dotnet build Froto.sln -c Release | ||
- dotnet test Parser.Test/Froto.Parser.Test.fsproj | ||
- dotnet test Serialization.Test/Froto.Serialization.Test.fsproj |
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 |
---|---|---|
|
@@ -1060,6 +1060,7 @@ module RegressionTests = | |
|
||
[<Fact>] | ||
let ``proto3 oneof type doesn't parse (#88)`` () = | ||
System.Diagnostics.Debugger.Break() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, don't need that. |
||
Parse.fromStringWithParser pProto """ | ||
syntax = "proto3"; | ||
|
||
|
@@ -1082,47 +1083,4 @@ module RegressionTests = | |
]) | ||
|
||
]) | ||
]) | ||
|
||
[<Fact>] | ||
let ``proto3 message with enum type doesn't parse (#93)`` () = | ||
Parse.fromStringWithParser pProto """ | ||
syntax = "proto3"; | ||
|
||
message SearchRequest { | ||
string query = 1; | ||
int32 page_number = 2; | ||
int32 result_per_page = 3; | ||
enum Corpus { | ||
UNIVERSAL = 0; | ||
WEB = 1; | ||
IMAGES = 2; | ||
LOCAL = 3; | ||
NEWS = 4; | ||
PRODUCTS = 5; | ||
VIDEO = 6; | ||
} | ||
Corpus corpus = 4; | ||
} | ||
""" | ||
|> should equal ( | ||
[ | ||
TSyntax TProto3 | ||
TMessage ("SearchRequest", | ||
[ | ||
TField ("query",TOptional,TString,1u,[]) | ||
TField ("page_number",TOptional,TInt32,2u,[]) | ||
TField ("result_per_page",TOptional,TInt32,3u,[]) | ||
TMessageEnum("Corpus", | ||
[ | ||
TEnumField ("UNIVERSAL",0,[]) | ||
TEnumField ("WEB",1,[]) | ||
TEnumField ("IMAGES",2,[]) | ||
TEnumField ("LOCAL",3,[]) | ||
TEnumField ("NEWS",4,[]) | ||
TEnumField ("PRODUCTS",5,[]) | ||
TEnumField ("VIDEO",6,[]) | ||
]) | ||
TField ("corpus", TOptional,TIdent "Corpus",4u,[]) | ||
]) | ||
]) | ||
]) |
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
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,22 +1,10 @@ | ||
$version = '0.7.0' # the version under development, update after a release | ||
$versionSuffix = '-build.0' # manually incremented for local builds | ||
|
||
function isVersionTag($tag){ | ||
$v = New-Object Version | ||
[Version]::TryParse($tag, [ref]$v) | ||
} | ||
|
||
if ($env:appveyor){ | ||
$versionSuffix = '-build.' + $env:appveyor_build_number | ||
if ($env:appveyor_repo_tag -eq 'true' -and (isVersionTag($env:appveyor_repo_tag_name))){ | ||
$version = $env:appveyor_repo_tag_name | ||
$versionSuffix = '' | ||
} | ||
Update-AppveyorBuild -Version "$version$versionSuffix" | ||
} | ||
|
||
dotnet build -c Release Froto.sln /p:Version=$version$versionSuffix | ||
dotnet build -c Release Froto.sln | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } | ||
dotnet test --no-build -c Release Parser.Test\Froto.Parser.Test.fsproj | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } | ||
dotnet test --no-build -c Release Serialization.Test\Froto.Serialization.Test.fsproj | ||
dotnet pack --no-build -c Release Parser\Froto.Parser.fsproj /p:Version=$version$versionSuffix -o $psscriptroot/bin | ||
dotnet pack --no-build -c Release Serialization\Froto.Serialization.fsproj /p:Version=$version$versionSuffix -o $psscriptroot/bin | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } | ||
dotnet pack --no-build -c Release Parser\Froto.Parser.fsproj -o $psscriptroot/bin | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } | ||
dotnet pack --no-build -c Release Serialization\Froto.Serialization.fsproj -o $psscriptroot/bin | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } |
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,17 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", | ||
"version": "0.6", | ||
"nugetPackageVersion": { | ||
"semVer": 2 | ||
}, | ||
"gitCommitIdShortAutoMinimum": 7, | ||
"publicReleaseRefSpec": [ | ||
"^refs/heads/master$", | ||
"^refs/heads/\\d+\\.\\d+$" | ||
], | ||
"cloudBuild": { | ||
"buildNumber": { | ||
"enabled": true | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for Travis CI