Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp2masa committed Jul 5, 2017
1 parent e244fbd commit 1ce4293
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 53 deletions.
21 changes: 10 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@ platform: AnyCPU
shallow_clone: true
clone_folder: c:\Cosmos

#install:
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/install-nuget-3-4-0.ps1'))

build_script:
- cmd: >-
rem %APPVEYOR_BUILD_FOLDER%
nuget restore "Builder.sln"
nuget restore "Cosmos.sln"
nuget restore "Build.sln"
msbuild "Builder.sln" /maxcpucount /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Platform="Any CPU" /p:Configuration=Debug /p:DeployExtension=false
nuget restore "Test.sln"
msbuild "Builder.sln" /maxcpucount /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Platform="Any CPU" /p:Configuration=Debug /p:DeployExtension=false
msbuild "Build.sln" /maxcpucount /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Platform="Any CPU" /p:Configuration=Debug /p:OutputPath="%APPVEYOR_BUILD_FOLDER%\Build\VSIP" /p:DeployExtension=false
msbuild "Test.sln" /maxcpucount /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Platform="Any CPU" /p:Configuration=Debug
xcopy /Y "%APPVEYOR_BUILD_FOLDER%\Build\VSIP\Cosmos.targets" "%ProgramFiles(x86)%\MSBuild\Cosmos\"
Expand Down Expand Up @@ -61,20 +62,18 @@ build_script:
reg add HKCR\BochsConfigFile\shell\Run\command /ve /d "\"C:\Program Files (x86)\Bochs-2.6.8\Bochs.exe\" -q -f \"%1\""
msbuild "Cosmos.sln" /maxcpucount /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Platform="Any CPU" /p:Configuration=Debug /p:DeployExtension=false
#test: off
# assemblies:
# - Cosmos.Core.Memory.Test.dll
# - DebugCompiler.dll
# - Cosmos.TestRunner.UnitTest.dll

test_script:
- cmd: >-
dotnet test Tests\Cosmos.TestRunner.UnitTest\Cosmos.TestRunner.UnitTest.csproj --logger "trx;LogFileName=c:\Cosmos\TestResult.xml"
- ps: >-
- cmd: dotnet test Tests\Cosmos.TestRunner.UnitTest\Cosmos.TestRunner.UnitTest.csproj --logger "trx;LogFileName=c:\Cosmos\TestResult.xml"

on_finish:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", "c:\Cosmos\TestResult.xml")
notifications:
Expand Down
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "1.0.4"
}
}
14 changes: 7 additions & 7 deletions source/Cosmos.Build.Builder/CosmosTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,19 +276,19 @@ private void Publish(string project, string destDir) {
private void CompileCosmos() {
string xVSIPDir = Path.Combine(mCosmosPath, "Build", "VSIP");
string xPackagesDir = Path.Combine(xVSIPDir, "KernelPackages");
string xVersion = "1.0.1";
string xVersion = "1.0.2";

if (!App.IsUserKit) {
xVersion += "-" + DateTime.Now.ToString("yyyyMMddHHmm");
}

Section("Clear Nuget Local");
Section("Clean NuGet Local Feed");
Clean(Path.Combine(mCosmosPath, @"Cosmos.sln"));

Section("Restore Nuget Packages");
Section("Restore NuGet Packages");
Restore(Path.Combine(mCosmosPath, @"Cosmos.sln"));

Section("Update Nuget Params");
Section("Update NuGet");
Update(Path.Combine(mCosmosPath, @"Cosmos.sln"));

Section("Build Cosmos");
Expand Down Expand Up @@ -343,12 +343,12 @@ private void CreateSetup() {
string xCfg = App.IsUserKit ? "UserKit" : "DevKit";
string vsVersionConfiguration = "vs2017";

// Use configuration which will instal to the VS Exp Hive
// Use configuration which will install to the VS Exp Hive
if (App.UseVsHive) {
vsVersionConfiguration += "Exp";
}
Log.WriteLine($" {xISCC} /Q {Quoted(mInnoFile)} /dBuildConfiguration={xCfg} /dVSVersion={vsVersionConfiguration} /dVSPath={Quoted(Paths.VSPath)} /dChangeSetVersion={Quoted(mReleaseNo.ToString())}");
StartConsole(xISCC, $"/Q {Quoted(mInnoFile)} /dBuildConfiguration={xCfg} /dVSVersion={vsVersionConfiguration} /dVSPath={Quoted(Paths.VSPath)} /dChangeSetVersion={Quoted(mReleaseNo.ToString())}");
Log.WriteLine($" {xISCC} /Q {Quoted(mInnoFile)} /dBuildConfiguration={xCfg} /dVSVersion={vsVersionConfiguration} /dChangeSetVersion={Quoted(mReleaseNo.ToString())}");
StartConsole(xISCC, $"/Q {Quoted(mInnoFile)} /dBuildConfiguration={xCfg} /dVSVersion={vsVersionConfiguration} /dChangeSetVersion={Quoted(mReleaseNo.ToString())}");
}

private void LaunchVS() {
Expand Down
5 changes: 5 additions & 0 deletions source/Cosmos.Build.MSBuild/Cosmos.Build.MSBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<RuntimeIdentifier>win7-x86</RuntimeIdentifier>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
<!--
NU1605 (Detected package downgrade) is being logged as error, which may cause the build to fail.
The .NET Standard libraries can't be upgraded, as this project targets .NET Framework 4.6.2.
-->
<NoWarn>NU1605</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 0 additions & 6 deletions source/Cosmos.Core/Cosmos.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,4 @@
<ProjectReference Include="..\Cosmos.IL2CPU.Plugs\Cosmos.IL2CPU.Plugs.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Cosmos.IL2CPU">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
6 changes: 0 additions & 6 deletions source/Cosmos.Core_Plugs/Cosmos.Core_Plugs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,4 @@
<ProjectReference Include="..\Cosmos.IL2CPU.Plugs\Cosmos.IL2CPU.Plugs.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Cosmos.IL2CPU">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion source/Cosmos.Debug.Hosts/HyperV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public override void Start()
// Target exe or file
var info = new ProcessStartInfo(@"C:\Windows\sysnative\VmConnect.exe", @"""localhost"" ""Cosmos""")
{
UseShellExecute = true
UseShellExecute = false
};

mProcess = new Process();
Expand Down
9 changes: 0 additions & 9 deletions source/Cosmos.HAL/Cosmos.HAL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,4 @@
<ProjectReference Include="..\Cosmos.IL2CPU.Plugs\Cosmos.IL2CPU.Plugs.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Cosmos.Assembler">
<HintPath>..\..\Build\bin\Cosmos.Assembler.dll</HintPath>
</Reference>
<Reference Include="Cosmos.IL2CPU">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion source/Cosmos.IL2CPU/ILScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ protected void ScanMethod(MethodBase aMethod, bool aIsPlug, string sourceItem)
}
if (xNeedsPlug)
{
throw new Exception("Native code encountered, plug required. Please see https://github.com/CosmosOS/Cosmos/wiki/Plugs). " + LabelName.GetFullName(aMethod) + "." + Environment.NewLine + " Called from :" + Environment.NewLine + sourceItem);
throw new Exception("Native code encountered, plug required. Please see http://www.gocosmos.org/docs/plugs/). " + LabelName.GetFullName(aMethod) + "." + Environment.NewLine + " Called from :" + Environment.NewLine + sourceItem);
}

//TODO: As we scan each method, we could update or put in a new list
Expand Down
6 changes: 0 additions & 6 deletions source/Cosmos.System.Plugs/Cosmos.System.Plugs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,4 @@
<ProjectReference Include="..\Cosmos.System\Cosmos.System.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Cosmos.IL2CPU">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
6 changes: 0 additions & 6 deletions source/Cosmos.System/Cosmos.System.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,4 @@
<ProjectReference Include="..\Cosmos.IL2CPU.Plugs\Cosmos.IL2CPU.Plugs.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Cosmos.IL2CPU">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.dll</HintPath>
</Reference>
</ItemGroup>

</Project>

0 comments on commit 1ce4293

Please sign in to comment.