Browse Source

Testing appveyor messages.

Norman Ziebal 6 years ago
parent
commit
0444172c71
1 changed files with 14 additions and 1 deletions
  1. 14 1
      appveyor.yml

+ 14 - 1
appveyor.yml

@@ -1,4 +1,5 @@
 image: Visual Studio 2013
 image: Visual Studio 2013
+
 # This is the default location, but we put it here for safety reasons, since we use it in our test script
 # This is the default location, but we put it here for safety reasons, since we use it in our test script
 clone_folder: c:\projects\rathena
 clone_folder: c:\projects\rathena
 # We do not need the git history for our integration tests
 # We do not need the git history for our integration tests
@@ -6,6 +7,7 @@ clone_depth: 50
 version: '{branch}-{build}'
 version: '{branch}-{build}'
 pull_requests:
 pull_requests:
   do_not_increment_build_number: true
   do_not_increment_build_number: true
+  
 environment:
 environment:
   matrix:
   matrix:
   - VisualStudioVersion: 14.0
   - VisualStudioVersion: 14.0
@@ -19,18 +21,29 @@ environment:
 platform:
 platform:
   - Win32
   - Win32
   - x64
   - x64
+  
 configuration:
 configuration:
   - Debug
   - Debug
 # Disable Release for now, since do not want to have any optimization and have access to debug infos on crash
 # Disable Release for now, since do not want to have any optimization and have access to debug infos on crash
 #  - Release
 #  - Release
+
 matrix:
 matrix:
   # Minimizing CI time. Should be enough to check guidelines only for one platform.
   # Minimizing CI time. Should be enough to check guidelines only for one platform.
   exclude:
   exclude:
     - platform: x64
     - platform: x64
       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
   fast_finish: true
   fast_finish: true
+  
 build_script:
 build_script:
-- cmd: msbuild rAthena.sln /p:DefineConstants=%Defines%
+- cmd: msbuild rAthena.sln /p:DefineConstants=%Defines% | tee result.txt
+
+after_build:
+- ps: >-
+    if ($env:Defines == "CODEANALYSIS") {
+        $warnings =  tail -n 5  result.txt | head -n 1
+        Add-AppveyorMessage -Message $warnings -Category Information
+    }
+
 services: mysql
 services: mysql
 test_script:
 test_script:
 - cmd: >-
 - cmd: >-