fixes this build
This commit is contained in:
parent
36722d338b
commit
a37aa4be96
3 changed files with 15 additions and 17 deletions
|
|
@ -1,20 +1,24 @@
|
||||||
|
using System.IO;
|
||||||
|
using Yavsc.Server.Models.IT;
|
||||||
using Yavsc.Server.Models.IT.SourceCode;
|
using Yavsc.Server.Models.IT.SourceCode;
|
||||||
|
|
||||||
public class Builder {
|
public class Builder {
|
||||||
|
string _gitRepository;
|
||||||
|
private Project _projectInfo;
|
||||||
|
|
||||||
|
public Builder()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void Clone()
|
public void Clone()
|
||||||
{
|
{
|
||||||
var firstProject = _dbContext.Project.Include(p=>p.Repository).FirstOrDefault();
|
var di = new DirectoryInfo(_gitRepository);
|
||||||
Assert.NotNull (firstProject);
|
if (!di.Exists) di.Create();
|
||||||
var di = new DirectoryInfo(_serverFixture.SiteSetup.GitRepository);
|
|
||||||
if (!di.Exists) di.Create();
|
|
||||||
|
|
||||||
|
var clone = new GitClone(_gitRepository);
|
||||||
var clone = new GitClone(_serverFixture.SiteSetup.GitRepository);
|
clone.Launch(_projectInfo);
|
||||||
clone.Launch(firstProject);
|
|
||||||
gitRepo = di.FullName;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -17,6 +17,8 @@ project.lock.json:
|
||||||
@# fixing package id reference case, to System.Xml, from package NJsonSchema.CodeGeneration.CSharp
|
@# fixing package id reference case, to System.Xml, from package NJsonSchema.CodeGeneration.CSharp
|
||||||
sed 's/System.XML/System.Xml/' project.lock.json > project.lock.json.new && mv project.lock.json.new project.lock.json
|
sed 's/System.XML/System.Xml/' project.lock.json > project.lock.json.new && mv project.lock.json.new project.lock.json
|
||||||
|
|
||||||
|
$(BINTARGETPATH): project.lock.json
|
||||||
|
|
||||||
run: $(BINTARGETPATH)
|
run: $(BINTARGETPATH)
|
||||||
ASPNET_ENV=$(ASPNET_ENV) dnx --configuration=$(CONFIGURATION) run send monthly
|
ASPNET_ENV=$(ASPNET_ENV) dnx --configuration=$(CONFIGURATION) run send monthly
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,14 +51,6 @@
|
||||||
"version": "1.0.6-rc03",
|
"version": "1.0.6-rc03",
|
||||||
"target": "package"
|
"target": "package"
|
||||||
},
|
},
|
||||||
"Yavsc.Abstract": {
|
|
||||||
"version": "1.0.6-rc03",
|
|
||||||
"target": "package"
|
|
||||||
},
|
|
||||||
"Yavsc.Server": {
|
|
||||||
"version": "1.0.6-rc03",
|
|
||||||
"target": "package"
|
|
||||||
},
|
|
||||||
"Microsoft.Dnx.Host": "1.0.0-rc1-final",
|
"Microsoft.Dnx.Host": "1.0.0-rc1-final",
|
||||||
"Microsoft.Dnx.Runtime": "1.0.0-rc1-final",
|
"Microsoft.Dnx.Runtime": "1.0.0-rc1-final",
|
||||||
"Microsoft.Dnx.DesignTimeHost": "1.0.0-rc1-final"
|
"Microsoft.Dnx.DesignTimeHost": "1.0.0-rc1-final"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue