forked from aspnet/Identity
-
Notifications
You must be signed in to change notification settings - Fork 9
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 #2 from linq2db/versions
nugets updated
- Loading branch information
Showing
125 changed files
with
7,191 additions
and
7,149 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 |
---|---|---|
|
@@ -27,4 +27,5 @@ nuget.exe | |
project.lock.json | ||
.vs | ||
.build/ | ||
.testPublish/ | ||
.testPublish/ | ||
tools/* |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<configuration> | ||
<packageSources> | ||
<add key="NuGet" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="ili" value="https://www.myget.org/F/ili/api/v3/index.json" /> | ||
<packageSources> | ||
<add key="NuGet" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="ili" value="https://www.myget.org/F/ili/api/v3/index.json" /> | ||
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-release/api/v3/index.json" /> | ||
</packageSources> | ||
</configuration> | ||
</configuration> |
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
File renamed without changes.
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,71 +1,46 @@ | ||
init: | ||
- git config --global core.autocrlf true | ||
|
||
version: 1.1.0.{build} | ||
|
||
configuration: Release | ||
- ps: $env:TestSqlServerDefaultConnectionString = "Server=(local)\SQL2012SP1;Database=master;Integrated Security=true" | ||
|
||
cache: | ||
- packages -> **\packages.config | ||
- '%USERPROFILE%\.nuget\packages -> **\project.json' | ||
|
||
environment: | ||
nugetVersion: 1.1.1 | ||
|
||
version: $(nugetVersion).{build} | ||
|
||
assembly_info: | ||
patch: true | ||
file: '**\AssemblyInfo.*' | ||
assembly_version: '{version}' | ||
assembly_file_version: '{version}' | ||
assembly_informational_version: '{version}' | ||
build_script: | ||
- ps: .\build.ps1 | ||
|
||
test: off | ||
|
||
artifacts: | ||
- path: artifacts/packages/*.nupkg | ||
|
||
services: | ||
- mssql2012sp1 | ||
#- mysql | ||
#- postgresql | ||
|
||
before_build: | ||
- cmd: dotnet restore | ||
|
||
build: | ||
project: LinqToDB.Identity.sln | ||
verbosity: minimal | ||
|
||
after_build: | ||
- cmd: dotnet pack --no-build src/LinqToDB.Identity/project.json --version-suffix=preview1-final -c=Release | ||
|
||
before_test: | ||
- ps: | | ||
[Environment]::SetEnvironmentVariable("Test:SqlServer:DefaultConnectionString", "Server=(local)\SQL2012SP1;Database=master;Integrated Security=true", "Machine") | ||
[Environment]::SetEnvironmentVariable("Test:SqlServer:DefaultConnectionString", "Server=(local)\SQL2012SP1;Database=master;Integrated Security=true") | ||
test_script: | ||
- ps: | | ||
Write-Host "Connection string" | ||
Write-Host $([Environment]::GetEnvironmentVariable("Test:SqlServer:DefaultConnectionString")) | ||
dotnet test test\Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test -c Release -f netcoreapp1.0 | ||
$test1res = $LASTEXITCODE | ||
# upload results to AppVeyor | ||
#$wc = New-Object 'System.Net.WebClient' | ||
#$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResult.xml)) | ||
dotnet test test\Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test -c Release -f netcoreapp1.0 | ||
$test2res = $LASTEXITCODE | ||
# upload results to AppVeyor | ||
#$wc = New-Object 'System.Net.WebClient' | ||
#$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResult.xml)) | ||
IF ($test1res -ne 0 -or $test2res -ne 0) { exit -1 } | ||
artifacts: | ||
- path: src\**\*.nupkg | ||
|
||
deploy: | ||
- provider: NuGet | ||
server: https://www.myget.org/F/ili/api/v2 | ||
server: https://www.myget.org/F/linq2db/api/v2 | ||
api_key: | ||
secure: pFvgey1/w68ZvVHFN/GWZdDFjSABpBRfb0XfLnW3wvhlfyEUiSyfr3dAUcbmlpsk | ||
secure: LDw0jeA1Yo3R4/TKv2kmlgJR8dTT6Wun2MONq3uDvtVQJG4LOU9LjvVTAc7IgRfm | ||
skip_symbols: true | ||
on: | ||
branch: master | ||
|
||
- provider: NuGet | ||
api_key: | ||
secure: 9BjFlmIycM3Q3tpwlQRsoC9SPL+BqIoqHKkHihvfR9TvTpYLd9jLcnLnh8eRSmfV | ||
secure: oTYw2IwTnz4qMD8c/MR/6mo+Nx3wa5Pp8MYfsKBCKCVuU6QCHlj+6QMXpnQses8G | ||
skip_symbols: false | ||
on: | ||
branch: master | ||
branch: release |
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,136 @@ | ||
#addin "MagicChunks" | ||
|
||
var target = Argument("target", "Default"); | ||
var configuration = Argument<string>("configuration", "Release"); | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
// GLOBAL VARIABLES | ||
/////////////////////////////////////////////////////////////////////////////// | ||
var isLocalBuild = !AppVeyor.IsRunningOnAppVeyor; | ||
var packPath = Directory("./src/LinqToDB.Identity"); | ||
var sourcePath = Directory("./src"); | ||
var testsPath = Directory("test"); | ||
var buildArtifacts = Directory("./artifacts/packages"); | ||
var solutionName = "./LinqToDB.Identity.sln"; | ||
var nugetProject = "./src/LinqToDB.Identity/LinqToDB.Identity.csproj"; | ||
var envPackageVersion = EnvironmentVariable("nugetVersion"); | ||
var argRelease = Argument<string>("Release", null); | ||
|
||
var packageSuffix = ""; | ||
var packageVersion = ""; | ||
var fullPackageVersion = ""; | ||
|
||
Task("Build") | ||
.IsDependentOn("Clean") | ||
.IsDependentOn("Restore") | ||
.Does(() => | ||
{ | ||
|
||
// Patch Version for CI builds | ||
if (!isLocalBuild || envPackageVersion != null) | ||
{ | ||
packageVersion = envPackageVersion; | ||
var assemblyVersion = packageVersion + ".0"; | ||
|
||
if (AppVeyor.Environment.Repository.Branch.ToLower() != "release" && argRelease == null) | ||
{ | ||
packageSuffix = "rc" + AppVeyor.Environment.Build.Number.ToString(); | ||
fullPackageVersion = packageVersion + "-" + packageSuffix; | ||
} | ||
|
||
Console.WriteLine("Package Version: {0}", packageVersion); | ||
Console.WriteLine("Package Suffix : {0}", packageSuffix); | ||
Console.WriteLine("Assembly Version: {0}", assemblyVersion); | ||
|
||
|
||
TransformConfig(nugetProject, nugetProject, | ||
new TransformationCollection { | ||
{ "Project/PropertyGroup/Version", fullPackageVersion }, | ||
{ "Project/PropertyGroup/VersionPrefix", packageVersion }, | ||
{ "Project/PropertyGroup/VersionSuffix", packageSuffix }, | ||
{ "Project/PropertyGroup/AssemblyVersion", assemblyVersion }, | ||
{ "Project/PropertyGroup/FileVersion", assemblyVersion }, | ||
}); | ||
|
||
} | ||
|
||
var settings = new DotNetCoreBuildSettings | ||
{ | ||
Configuration = configuration | ||
// Runtime = IsRunningOnWindows() ? null : "unix-x64" | ||
}; | ||
|
||
DotNetCoreBuild(solutionName, settings); | ||
}); | ||
|
||
Task("RunTests") | ||
.IsDependentOn("Restore") | ||
.IsDependentOn("Clean") | ||
.Does(() => | ||
{ | ||
var projects = GetFiles("./test/**/*.csproj"); | ||
|
||
foreach(var project in projects) | ||
{ | ||
var settings = new DotNetCoreTestSettings | ||
{ | ||
Configuration = configuration, | ||
NoBuild = true | ||
}; | ||
|
||
Console.WriteLine(project.FullPath); | ||
|
||
DotNetCoreTest(project.FullPath, settings); | ||
} | ||
}); | ||
|
||
Task("Pack") | ||
.IsDependentOn("Restore") | ||
.IsDependentOn("Clean") | ||
.Does(() => | ||
{ | ||
var settings = new DotNetCorePackSettings | ||
{ | ||
Configuration = configuration, | ||
OutputDirectory = buildArtifacts, | ||
NoBuild = true, | ||
VersionSuffix = packageSuffix | ||
}; | ||
|
||
/* | ||
if (!string.IsNullOrEmpty(packageVersion)) | ||
settings.ArgumentCustomization = b => | ||
{ | ||
Console.WriteLine("Package Version: {0}", packageVersion); | ||
b.Append(" /p:VersionSuffix=" + "rc10"); | ||
return b; | ||
}; | ||
*/ | ||
|
||
DotNetCorePack(packPath, settings); | ||
}); | ||
|
||
Task("Clean") | ||
.Does(() => | ||
{ | ||
CleanDirectories(new DirectoryPath[] { buildArtifacts }); | ||
}); | ||
|
||
Task("Restore") | ||
.Does(() => | ||
{ | ||
var settings = new DotNetCoreRestoreSettings | ||
{ | ||
//Sources = new [] { "https://api.nuget.org/v3/index.json" } | ||
}; | ||
|
||
DotNetCoreRestore(solutionName, settings); | ||
}); | ||
|
||
Task("Default") | ||
.IsDependentOn("Build") | ||
.IsDependentOn("RunTests") | ||
.IsDependentOn("Pack"); | ||
|
||
RunTarget(target); |
Oops, something went wrong.