-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from panesofglass/merge-chiron-6
Merge chiron-6 build updates
- Loading branch information
Showing
10 changed files
with
56 additions
and
42 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ paket-files | |
*.suo | ||
*.user | ||
*.sln.docstates | ||
.vs/ | ||
|
||
# Build results | ||
.fake/ | ||
|
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,33 +1,36 @@ | ||
language: csharp | ||
|
||
mono: 5.2.0 | ||
dotnet: 2.0.0 | ||
dotnet: 2.1.402 | ||
|
||
mono: | ||
- 5.2.0 | ||
|
||
install: | ||
- mozroots --import --sync | ||
# workaround for missing .net 4.5 targing pack | ||
- export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.5/ | ||
- mozroots --import --sync | ||
# workaround for missing .net 4.5 targing pack | ||
- export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.5/ | ||
|
||
matrix: | ||
include: | ||
include: | ||
- os: linux # Ubuntu 14.04 | ||
dist: trusty | ||
sudo: required | ||
dotnet: 2.0.0 | ||
dotnet: 2.1.402 | ||
- os: osx # OSX 10.12 | ||
osx_image: xcode9.1 | ||
dotnet: 2.0.0 | ||
dotnet: 2.1.402 | ||
dist: trusty | ||
sudo: required | ||
|
||
script: | ||
- dotnet --info | ||
- dotnet restore | ||
- dotnet build -c Release | ||
- dotnet test -c Release tests\Chiron.Tests\Chiron.Tests.fsproj | ||
- dotnet pack -c Release | ||
- dotnet benchmarks\Chiron.Benchmarks\bin\Release\netcoreapp2.0\Chiron.Benchmarks.dll --class SwaggerSchema | ||
- dotnet test --no-build -c Release tests/Chiron.Tests/Chiron.Tests.fsproj | ||
- dotnet pack --no-build -c Release src/Chiron | ||
#- dotnet benchmarks\Chiron.Benchmarks\bin\Release\netcoreapp2.0\Chiron.Benchmarks.dll --class SwaggerSchema | ||
|
||
branches: | ||
except: | ||
- gh-pages | ||
- gh-pages | ||
|
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,17 +1,9 @@ | ||
version: 7.0.0-aci-{build} | ||
|
||
image: Visual Studio 2017 | ||
|
||
build_script: | ||
- ps: dotnet --info | ||
- ps: dotnet restore | ||
- ps: dotnet build -c Release --version-suffix "aci-${env:APPVEYOR_BUILD_NUMBER}" | ||
- ps: dotnet test -c Release tests\Chiron.Tests\Chiron.Tests.fsproj | ||
- ps: dotnet pack -c Release --version-suffix "aci-${env:APPVEYOR_BUILD_NUMBER}" | ||
- ps: dotnet benchmarks\Chiron.Benchmarks\bin\Release\netcoreapp2.0\Chiron.Benchmarks.dll --class SwaggerSchema | ||
|
||
- ps: | | ||
.\build.ps1 | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } | ||
test: off | ||
|
||
artifacts: | ||
- path: '**\*.nupkg' | ||
- path: bin\*.nupkg | ||
- path: '**\BenchmarkDotNet.Artifacts\**\*.*' |
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,22 @@ | ||
[xml]$doc = Get-Content .\src\Directory.Build.props | ||
$version = $doc.Project.PropertyGroup.VersionPrefix # 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 Chiron.sln /p:Version=$version$versionSuffix | ||
dotnet test --no-build -c Release tests/Chiron.Tests/Chiron.Tests.fsproj | ||
dotnet pack --no-build -c Release src/Chiron /p:Version=$version$versionSuffix -o $psscriptroot/bin | ||
# dotnet benchmarks\Chiron.Benchmarks\bin\Release\netcoreapp2.0\Chiron.Benchmarks.dll --class SwaggerSchema |
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,17 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks> | ||
<VersionPrefix>7.0.0</VersionPrefix> | ||
<TargetFrameworks>netstandard2.0;net452</TargetFrameworks> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!--<Compile Include="Chiron.fsi" />--> | ||
<Compile Include="Chiron.fs" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETStandard'"> | ||
<PackageReference Include="FParsec" Version="1.0.2" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'"> | ||
<ItemGroup> | ||
<PackageReference Include="Aether" Version="8.2.0" /> | ||
<PackageReference Include="FParsec" Version="1.0.3" /> | ||
</ItemGroup> | ||
</Project> |
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 was deleted.
Oops, something went wrong.