@@ -42,33 +42,53 @@ environment:
4242install :
4343- cmd : >-
4444 @echo off
45+
4546 REM ======================================================================
47+
4648 REM Cloning google test repository
49+
4750 REM =======================================================================
51+
4852 git clone https://github.com/google/googletest.git c:\projects\third_party\googletest
53+
4954 cd /d c:\projects\third_party\googletest
55+
5056 git checkout release-1.6.0
5157
5258 REM =======================================================================
59+
5360 REM Generating google test Visual Studio 2010 solution
61+
5462 REM =======================================================================
63+
5564 mkdir msvc2010
65+
5666 cd msvc2010
67+
5768 cmake -G "Visual Studio 10 2010" -Dgtest_force_shared_crt=ON -DCMAKE_CXX_FLAGS_DEBUG=/MDd -DCMAKE_CXX_FLAGS_RELEASE=/MD "c:\projects\third_party\googletest"
69+
5870 cd..
5971
6072 REM =======================================================================
73+
6174 REM Displaying Environnment Variables
75+
6276 REM =======================================================================
77+
6378 set
6479
6580 REM =======================================================================
81+
6682 REM Building google test library
83+
6784 REM =======================================================================
85+
6886 msbuild "msvc2010\gtest.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
6987
7088 REM =======================================================================
89+
7190 REM Done
91+
7292 REM =======================================================================
7393
7494# ---------------------------------#
@@ -98,19 +118,31 @@ build:
98118test_script :
99119- cmd : >-
100120 REM ======================================================================
121+
101122 REM Running unit tests
123+
102124 REM =======================================================================
125+
103126 cd /d c:\projects\bin2cpp\msvc
127+
104128 set path=%PATH%;c:\projects\bin2cpp\msvc\Win32\Release
129+
105130 bin2cpp_unittest.exe --gtest_filter=-TestExtraction.testRandom100000
106131
107132 REM ======================================================================
133+
108134 REM Uploading test results to AppVeyor
135+
109136 REM =======================================================================
137+
110138 set TEST_RESULT_URL=https://ci.appveyor.com/api/testresults/junit/%APPVEYOR_JOB_ID%
139+
111140 set TEST_RESULT_FILE=%CD%\bin2cppTest.x86.release.xml
141+
112142 echo TEST_RESULT_URL=%TEST_RESULT_URL%
143+
113144 echo TEST_RESULT_FILE=%TEST_RESULT_FILE%
145+
114146 powershell "(New-Object 'System.Net.WebClient').UploadFile($($env:TEST_RESULT_URL), $($env:TEST_RESULT_FILE))"
115147
116148# ---------------------------------#
0 commit comments