Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update rdf.vocabularies * paket magic mode * conver Argolis.Models to netstandard * argolis.hydra.nancy * argolis.nancy * getting closer to .net standard * got to a state where command line builds and runs tests * apply stylecop to test projects and fix build within VS * fix borken tests * correct urls and years in nuspecs * start setting up cake * call cake on CI * remove version attributes from assembly.info files * remove prerelease form cake build * remove gitlink * add mock to fix dotnet test * replace integration tests with HttpClient client * remove paket from projecy dependencies * merge uritemplates into argolis.hydra * update nancy,rdf * tweak codecov steps
- Loading branch information
Showing
110 changed files
with
1,781 additions
and
2,855 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,115 @@ | ||
#tool paket:?package=OpenCover | ||
#tool paket:?package=codecov | ||
#tool paket:?package=GitVersion.CommandLine | ||
#addin paket:?package=Cake.Paket | ||
#addin paket:?package=Cake.Codecov | ||
var target = Argument("target", "Build"); | ||
var configuration = Argument("Configuration", "Debug"); | ||
GitVersion version; | ||
Task("CI") | ||
.IsDependentOn("Pack") | ||
.IsDependentOn("Codecov").Does(() => {}); | ||
Task("Pack") | ||
.IsDependentOn("Build") | ||
.DoesForEach(GetFiles("./src/**/*.csproj"), path => { | ||
var settings = new DotNetCorePackSettings { | ||
Configuration = configuration, | ||
OutputDirectory = "./nugets/", | ||
NoBuild = true, | ||
MSBuildSettings = new DotNetCoreMSBuildSettings() | ||
}; | ||
settings.MSBuildSettings.Properties["version"] = new [] { version.NuGetVersion }; | ||
DotNetCorePack(path.FullPath, settings); | ||
}); | ||
|
||
Task("GitVersion") | ||
.Does(() => { | ||
version = GitVersion(new GitVersionSettings { | ||
UpdateAssemblyInfo = true, | ||
}); | ||
if (BuildSystem.IsLocalBuild == false) | ||
{ | ||
GitVersion(new GitVersionSettings { | ||
OutputType = GitVersionOutput.BuildServer | ||
}); | ||
} | ||
}); | ||
|
||
Task("Restore") | ||
.Does(() => { | ||
DotNetCoreRestore(new DotNetCoreRestoreSettings { | ||
Sources = new[] { | ||
"https://api.nuget.org/v3/index.json", | ||
"https://www.myget.org/F/tpluscode/api/v3/index.json" | ||
}, | ||
}); | ||
}); | ||
|
||
Task("Build") | ||
.IsDependentOn("GitVersion") | ||
.IsDependentOn("Restore") | ||
.Does(() => { | ||
DotNetCoreBuild("Argolis.sln", new DotNetCoreBuildSettings { | ||
Configuration = configuration | ||
}); | ||
}); | ||
|
||
Task("Codecov") | ||
.IsDependentOn("Test") | ||
.Does(() => { | ||
var buildVersion = string.Format("{0}.build.{1}", | ||
version.FullSemVer, | ||
BuildSystem.AppVeyor.Environment.Build.Number | ||
); | ||
var settings = new CodecovSettings { | ||
Files = new[] { "./coverage/cobertura.xml" }, | ||
EnvironmentVariables = new Dictionary<string,string> { { "APPVEYOR_BUILD_VERSION", buildVersion } } | ||
}; | ||
Codecov(settings); | ||
}); | ||
|
||
Task("Test") | ||
.IsDependentOn("Build") | ||
.Does(RunTests("Argolis.tests")) | ||
.Does(RunTests("Argolis.tests.Integration")) | ||
.Does(() => { | ||
DotCoverMerge(GetFiles("coverage\\*.dcvr"), "coverage\\merged.dcvr"); | ||
}) | ||
.Does(() => { | ||
DotCoverReport( | ||
"./coverage/merged.dcvr", | ||
"./coverage/dotcover.xml", | ||
new DotCoverReportSettings { | ||
ReportType = DotCoverReportType.DetailedXML, | ||
}); | ||
}) | ||
.Does(() => { | ||
ReportGenerator("./coverage/dotcover.xml", "./coverage", new ReportGeneratorSettings() { | ||
ReportTypes = new [] { ReportGeneratorReportType.Cobertura } | ||
}); | ||
}) | ||
.DeferOnError(); | ||
|
||
public Action<ICakeContext> RunTests(string project) | ||
{ | ||
var testSettings = new DotNetCoreTestSettings | ||
{ | ||
Configuration = configuration, | ||
NoBuild = true | ||
}; | ||
|
||
return (ICakeContext c) => | ||
DotCoverCover( | ||
(ICakeContext ctx) => ctx.DotNetCoreTest(GetFiles($"**\\{project}.csproj").Single().FullPath, testSettings), | ||
$"./coverage/{project}.dcvr", | ||
new DotCoverCoverSettings()); | ||
} | ||
|
||
RunTarget(target); |
Oops, something went wrong.