]> git.deb.at Git - rhonda/impostor.git/commitdiff
AppVeyor
authorAeonLucid <aeonlucid@gmail.com>
Wed, 14 Oct 2020 12:57:02 +0000 (14:57 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Wed, 14 Oct 2020 12:57:02 +0000 (14:57 +0200)
appveyor.yml
src/Impostor.Server.Api/Impostor.Server.Api.csproj
src/Impostor.Server.Hazel/Impostor.Server.Hazel.csproj
src/Impostor.Server/Net/MatchmakerService.cs
src/Impostor.Server/ProjectRules.ruleset

index 4f40b3a65c79370fef94ae23e512ee748fa079e3..a85d5dec148edc803e0e9ebedd6c8b84e787f2f6 100644 (file)
@@ -40,19 +40,19 @@ build_script:
   - dotnet build "src/Impostor.Client/Impostor.Client.WinForms/Impostor.Client.WinForms.csproj" /p:Configuration=Release /p:DebugSymbols=false /p:DebugType=None
   # Server win-x64
   - dotnet publish -c release -o build/win-x64 -f net5.0 -r win-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj /p:PublishSingleFile=true
-  - 7z a -r build/win-x64.zip %APPVEYOR_BUILD_FOLDER%/build/win-x64/*
+  - ps: 7z a -r build/Impostor-Server-win-x64-$(APPVEYOR_BUILD_VERSION).zip %APPVEYOR_BUILD_FOLDER%/build/win-x64/*
   # Server linux-x64
   - dotnet publish -c release -o ./build/linux-x64 -f net5.0 -r linux-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj /p:PublishSingleFile=true
-  - 7z a -r build/linux-x64.zip %APPVEYOR_BUILD_FOLDER%/build/linux-x64/*
+  - ps: z a -r build/Impostor-Server-linux-x64-$(APPVEYOR_BUILD_VERSION).zip %APPVEYOR_BUILD_FOLDER%/build/linux-x64/*
 
 test_script:
   - dotnet test --no-build --no-restore -v normal -f net5.0 -c Release "src/Impostor.Tests"
 
 artifacts:
-  - path: build/win-x64.zip
-    name: Impostor-Server-win-x64.zip
-  - path: build/linux-x64.zip
-    name: Impostor-Server-linux-x64.zip
+  - path: build/Impostor-Server-win-x64-$(APPVEYOR_BUILD_VERSION).zip
+    name: Impostor-Server-win-x64-$(APPVEYOR_BUILD_VERSION).zip
+  - path: build/Impostor-Server-linux-x64-$(APPVEYOR_BUILD_VERSION).zip
+    name: Impostor-Server-linux-x64-$(APPVEYOR_BUILD_VERSION).zip
 
 only_commits:
   files:
index 8a568afd54d991658e9f5b90fc422202193087a9..1518fb6c8c62b1ae5301b46b0310e3920a30f772 100644 (file)
@@ -4,6 +4,7 @@
         <TargetFramework>net5.0</TargetFramework>
         <RootNamespace>Impostor.Server</RootNamespace>
         <Nullable>enable</Nullable>
+        <DebugType Condition=" '$(Configuration)' == 'Release' ">None</DebugType>
         <CodeAnalysisRuleSet>ProjectRules.ruleset</CodeAnalysisRuleSet>
     </PropertyGroup>
 
index 7d37edfbbc3052a7cd01d7e77a0074f5dd456863..df3f8c9619e095924c8db851f85f426acfe53a45 100644 (file)
@@ -3,6 +3,7 @@
     <PropertyGroup>
         <TargetFramework>net5.0</TargetFramework>
         <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+        <DebugType Condition=" '$(Configuration)' == 'Release' ">None</DebugType>
     </PropertyGroup>
 
     <ItemGroup>
index db2b38ebe88b96b95b0d1c647fb662a235501c1d..1405b97a0b9a44c78918abf7accdb00cc4a3d795 100644 (file)
@@ -17,8 +17,8 @@ namespace Impostor.Server.Net
         private readonly IMatchmaker _matchmaker;
 
         public MatchmakerService(
-            ILogger<MatchmakerService> logger, 
-            IOptions<ServerConfig> serverConfig, 
+            ILogger<MatchmakerService> logger,
+            IOptions<ServerConfig> serverConfig,
             IOptions<ServerRedirectorConfig> redirectorConfig,
             IMatchmaker matchmaker)
         {
@@ -27,17 +27,18 @@ namespace Impostor.Server.Net
             _redirectorConfig = redirectorConfig.Value;
             _matchmaker = matchmaker;
         }
-        
+
         public async Task StartAsync(CancellationToken cancellationToken)
         {
             var endpoint = new IPEndPoint(IPAddress.Parse(_serverConfig.ListenIp), _serverConfig.ListenPort);
-            
+
             await _matchmaker.StartAsync(endpoint);
-            
-            _logger.LogInformation("Matchmaker is listening on {0}:{1}, the public server ip is {2}:{3}.", 
-                endpoint.Address, 
+
+            _logger.LogInformation(
+                "Matchmaker is listening on {0}:{1}, the public server ip is {2}:{3}.", 
+                endpoint.Address,
                 endpoint.Port,
-                _serverConfig.PublicIp, 
+                _serverConfig.PublicIp,
                 _serverConfig.PublicPort);
 
             if (_redirectorConfig.Enabled)
index f3b4dc545ab4a3f5d29a7e1c5ccd4cfeb1acba7f..3654bc34c0c7d6dd026c590f8177c2403575e7d7 100644 (file)
@@ -15,6 +15,7 @@
         <Rule Id="SA1309" Action="None" />
     </Rules>
     <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.CSharp.SpacingRules">
+        <Rule Id="SA1003" Action="None" />
         <Rule Id="SA1009" Action="None" />
     </Rules>
 </RuleSet>
\ No newline at end of file