Skip to content

Commit 650cc2f

Browse files
committed
Added spaces in appveyor.yml CMD scripts to fix the build issue.
1 parent d1620b6 commit 650cc2f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

appveyor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,53 @@ environment:
4242
install:
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:
98118
test_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

Comments
 (0)