Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Project
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
apis
Project
Commits
e154ef1e
Commit
e154ef1e
authored
5 years ago
by
L. Ellenbeck
Browse files
Options
Downloads
Patches
Plain Diff
Updated build script
parent
5577b29f
No related branches found
No related tags found
1 merge request
!36
Content MD for resource type RDS
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.cake
+10
-2
10 additions, 2 deletions
build.cake
with
10 additions
and
2 deletions
build.cake
+
10
−
2
View file @
e154ef1e
...
@@ -24,7 +24,11 @@ var solutionFile = GetFiles("./**/*.sln").First();
...
@@ -24,7 +24,11 @@ var solutionFile = GetFiles("./**/*.sln").First();
var projectName = solutionFile.GetFilenameWithoutExtension().ToString();
var projectName = solutionFile.GetFilenameWithoutExtension().ToString();
var assemblyInfoSubPath = "Properties/AssemblyInfo.cs";
var assemblyInfoSubPath = "Properties/AssemblyInfo.cs";
var nugetSource = "https://api.nuget.org/v3/index.json";
var nugetSource = "https://api.nuget.org/v3/index.json";
var localNugetFeed = new
{
Name = "LocalNuget",
Source = @"C:\LocalNuget"
};
// get latest MSBuild version
// get latest MSBuild version
var vsLatest = VSWhereLatest();
var vsLatest = VSWhereLatest();
var msBuildPathX64 = (vsLatest == null) ? null : vsLatest.CombineWithFilePath("./MSBuild/Current/Bin/MSBuild.exe");
var msBuildPathX64 = (vsLatest == null) ? null : vsLatest.CombineWithFilePath("./MSBuild/Current/Bin/MSBuild.exe");
...
@@ -89,6 +93,10 @@ Task("Restore")
...
@@ -89,6 +93,10 @@ Task("Restore")
.Does(() =>{
.Does(() =>{
// Restore all NuGet packages.
// Restore all NuGet packages.
Information($"Restoring {solutionFile}...");
Information($"Restoring {solutionFile}...");
if(!NuGetHasSource(localNugetFeed.Source))
{
NuGetAddSource(localNugetFeed.Name, localNugetFeed.Source);
}
NuGetRestore(solutionFile, new NuGetRestoreSettings {
NuGetRestore(solutionFile, new NuGetRestoreSettings {
NoCache = true
NoCache = true
});
});
...
@@ -103,7 +111,7 @@ Task("DupFinder")
...
@@ -103,7 +111,7 @@ Task("DupFinder")
OutputFile = $"{artifactsDir}/dupfinder.xml",
OutputFile = $"{artifactsDir}/dupfinder.xml",
ExcludeCodeRegionsByNameSubstring = dupFinderExcludeCodeRegionsByNameSubstring,
ExcludeCodeRegionsByNameSubstring = dupFinderExcludeCodeRegionsByNameSubstring,
ExcludePattern = dupFinderExcludePatterns.ToArray(),
ExcludePattern = dupFinderExcludePatterns.ToArray(),
ThrowExceptionOnFindingDuplicates =
tru
e
ThrowExceptionOnFindingDuplicates =
fals
e
};
};
DupFinder(solutionFile, settings);
DupFinder(solutionFile, settings);
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment