diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000..0d5878aa77 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,23 @@ +clone_depth: 1 +version: '{branch}-{build}' +configuration: Debug +cache: + - C:\ProgramData\chocolatey\bin -> appveyor.yml + - C:\ProgramData\chocolatey\lib -> appveyor.yml + - inspectcode -> appveyor.yml + - packages -> **\packages.config +install: + - cmd: git submodule update --init --recursive + - cmd: choco install resharper-clt -y + - cmd: choco install nvika -y + - cmd: appveyor DownloadFile https://github.com/peppy/CodeFileSanity/releases/download/v0.1/CodeFileSanity.exe +before_build: + - cmd: CodeFileSanity.exe + - cmd: nuget restore +build: + project: osu.sln + parallel: true + verbosity: minimal +after_build: + - cmd: inspectcode /o="inspectcodereport.xml" /caches-home="inspectcode" osu.sln + - cmd: NVika parsereport "inspectcodereport.xml" \ No newline at end of file diff --git a/osu-framework b/osu-framework index 5dbb4a5134..a50dd75b11 160000 --- a/osu-framework +++ b/osu-framework @@ -1 +1 @@ -Subproject commit 5dbb4a5134dacb2e98ab8f2af219039a72bd32e6 +Subproject commit a50dd75b114da963c75e6a5314099d99140035b8 diff --git a/osu-resources b/osu-resources index 51f2b9b37f..39657fc606 160000 --- a/osu-resources +++ b/osu-resources @@ -1 +1 @@ -Subproject commit 51f2b9b37f38cd349a3dd728a78f8fffcb3a54f5 +Subproject commit 39657fc6066ea3a141ac71cabf67ec9ebf24975c diff --git a/osu.Desktop.Deploy/App.config b/osu.Desktop.Deploy/App.config index 33ae53313b..bd464a0453 100644 --- a/osu.Desktop.Deploy/App.config +++ b/osu.Desktop.Deploy/App.config @@ -1,4 +1,8 @@  + diff --git a/osu.Desktop.Deploy/GitHubObject.cs b/osu.Desktop.Deploy/GitHubObject.cs index f87de5cbdd..a91e7273a4 100644 --- a/osu.Desktop.Deploy/GitHubObject.cs +++ b/osu.Desktop.Deploy/GitHubObject.cs @@ -1,8 +1,11 @@ -using Newtonsoft.Json; +// Copyright (c) 2007-2017 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using Newtonsoft.Json; namespace osu.Desktop.Deploy { - internal class GitHubObject + public class GitHubObject { [JsonProperty(@"id")] public int Id; diff --git a/osu.Desktop.Deploy/GitHubRelease.cs b/osu.Desktop.Deploy/GitHubRelease.cs index 7e7b04fe58..fe372a7825 100644 --- a/osu.Desktop.Deploy/GitHubRelease.cs +++ b/osu.Desktop.Deploy/GitHubRelease.cs @@ -1,8 +1,11 @@ -using Newtonsoft.Json; +// Copyright (c) 2007-2017 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using Newtonsoft.Json; namespace osu.Desktop.Deploy { - internal class GitHubRelease + public class GitHubRelease { [JsonProperty(@"id")] public int Id; diff --git a/osu.Desktop.Deploy/Program.cs b/osu.Desktop.Deploy/Program.cs index 7c6efa7f70..7141b6d52f 100644 --- a/osu.Desktop.Deploy/Program.cs +++ b/osu.Desktop.Deploy/Program.cs @@ -1,5 +1,5 @@ // Copyright (c) 2007-2017 ppy Pty Ltd . -// Licensed under the MIT Licence - https://raw.GitHubusercontent.com/ppy/osu-framework/master/LICENCE +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; @@ -40,7 +40,7 @@ namespace osu.Desktop.Deploy /// /// How many previous build deltas we want to keep when publishing. /// - const int keep_delta_count = 3; + private const int keep_delta_count = 3; private static string codeSigningCmd => string.IsNullOrEmpty(codeSigningPassword) ? "" : $"-n \"/a /f {codeSigningCertPath} /p {codeSigningPassword} /t http://timestamp.comodoca.com/authenticode\""; @@ -172,10 +172,10 @@ namespace osu.Desktop.Deploy } //remove excess deltas - var deltas = releaseLines.Where(l => l.Filename.Contains("-delta")); - if (deltas.Count() > keep_delta_count) + var deltas = releaseLines.Where(l => l.Filename.Contains("-delta")).ToArray(); + if (deltas.Length > keep_delta_count) { - foreach (var l in deltas.Take(deltas.Count() - keep_delta_count)) + foreach (var l in deltas.Take(deltas.Length - keep_delta_count)) { write($"- Removing old delta {l.Filename}", ConsoleColor.Yellow); File.Delete(Path.Combine(ReleasesFolder, l.Filename)); @@ -342,7 +342,10 @@ namespace osu.Desktop.Deploy }; Process p = Process.Start(psi); + if (p == null) return false; + string output = p.StandardOutput.ReadToEnd(); + if (p.ExitCode == 0) return true; write(output); diff --git a/osu.Desktop.Deploy/Properties/AssemblyInfo.cs b/osu.Desktop.Deploy/Properties/AssemblyInfo.cs index e0c1ad1a43..8df81400c1 100644 --- a/osu.Desktop.Deploy/Properties/AssemblyInfo.cs +++ b/osu.Desktop.Deploy/Properties/AssemblyInfo.cs @@ -1,4 +1,7 @@ -using System.Reflection; +// Copyright (c) 2007-2017 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/osu.Desktop.Deploy/osu.Desktop.Deploy.csproj b/osu.Desktop.Deploy/osu.Desktop.Deploy.csproj index 898a991292..6bed6bb049 100644 --- a/osu.Desktop.Deploy/osu.Desktop.Deploy.csproj +++ b/osu.Desktop.Deploy/osu.Desktop.Deploy.csproj @@ -101,6 +101,9 @@ + + osu.licenseheader + diff --git a/osu.Desktop.Deploy/packages.config b/osu.Desktop.Deploy/packages.config index 4bbb763e27..59e9e42f45 100644 --- a/osu.Desktop.Deploy/packages.config +++ b/osu.Desktop.Deploy/packages.config @@ -1,4 +1,8 @@  + diff --git a/osu.Desktop.Tests/app.config b/osu.Desktop.Tests/app.config index b9af3fdc80..855da39b10 100644 --- a/osu.Desktop.Tests/app.config +++ b/osu.Desktop.Tests/app.config @@ -1,4 +1,5 @@  + + + + + + + + + + + \ No newline at end of file diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index 1c5996b51e..3d4a763cb8 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -43,6 +43,10 @@ $(SolutionDir)\packages\ppy.OpenTK.2.0.50727.1340\lib\net45\OpenTK.dll True + + ..\packages\SharpCompress.0.15.1\lib\net45\SharpCompress.dll + True + $(SolutionDir)\packages\SQLite.Net.Core-PCL.3.1.1\lib\portable-win8+net45+wp8+wpa81+MonoAndroid1+MonoTouch1\SQLite.Net.dll True @@ -69,6 +73,8 @@ + + @@ -79,12 +85,22 @@ + + + + + + + + + + @@ -120,7 +136,9 @@ + + @@ -153,10 +171,10 @@ + - @@ -168,7 +186,6 @@ - @@ -187,13 +204,12 @@ - + - @@ -211,6 +227,15 @@ + + + + + + + + + @@ -274,12 +299,19 @@ - - - - - - + + + + + + + + + + + + + @@ -287,6 +319,14 @@ + + + + + + + + @@ -302,14 +342,13 @@ osu.licenseheader + - - - +