Skip to content

Commit f2f2051

Browse files
committed
Moved googletest_install.bat script from /ci/windowslocal/ to /ci/appveyor/googletest_install.bat since it was also the same script for appveyor.yml
1 parent f4485fd commit f2f2051

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ environment:
4646

4747
# scripts that run after cloning repository
4848
install:
49-
- cmd: call c:\projects\bin2cpp\ci\windowslocal\googletest_install.bat
49+
- cmd: call c:\projects\bin2cpp\ci\appveyor\googletest_install.bat
5050
- cmd: call c:\projects\bin2cpp\ci\appveyor\googletest_build.bat
5151
- cmd: call c:\projects\bin2cpp\ci\appveyor\list_env_var.bat
5252

ci/appveyor/googletest_build.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
echo =======================================================================
2-
echo Building google test library
2+
echo Building googletest solution: %REPOSITORY_ROOT%\third_party\googletest\msvc2010\gtest.sln
33
echo =======================================================================
44
cd /d %REPOSITORY_ROOT%\third_party\googletest\msvc2010
5-
msbuild "msvc2010\gtest.sln" /m /verbosity:minimal
5+
msbuild "gtest.sln" /m /verbosity:minimal
66

77
echo =======================================================================
8-
echo Done
8+
echo Building googletest solution (done)
99
echo =======================================================================
Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@ echo REPOSITORY_ROOT=%REPOSITORY_ROOT%
1010
echo done.
1111
echo.
1212

13+
echo ======================================================================
14+
echo Deleting googletest repository folder (if any)
15+
echo =======================================================================
16+
if EXIST %REPOSITORY_ROOT%\third_party\googletest (
17+
rmdir /q/s %REPOSITORY_ROOT%\third_party\googletest
18+
)
19+
echo done.
20+
echo.
21+
1322
echo ======================================================================
1423
echo Cloning google test repository
1524
echo =======================================================================
1625
git clone https://github.com/google/googletest.git %REPOSITORY_ROOT%\third_party\googletest
17-
cd /d %REPOSITORY_ROOT%\googletest
26+
cd /d %REPOSITORY_ROOT%\third_party\googletest
1827
git checkout release-1.6.0
1928
echo done.
2029
echo.
@@ -45,10 +54,14 @@ echo Setting environnment variables for googletest
4554
echo =======================================================================
4655
set GTEST_DEBUG_LIBRARIES=gtest.lib
4756
set GTEST_RELEASE_LIBRARIES=gtest.lib
48-
set GTEST_INCLUDE=%GTEST_HOME%\include
49-
set GTEST_LIBRARY_DIR=%GTEST_HOME%\msvc2010
57+
set GTEST_INCLUDE=%REPOSITORY_ROOT%\third_party\googletest\include
58+
set GTEST_LIBRARY_DIR=%REPOSITORY_ROOT%\third_party\googletest\msvc2010
59+
REM
5060
setx GTEST_DEBUG_LIBRARIES %GTEST_DEBUG_LIBRARIES%
5161
setx GTEST_RELEASE_LIBRARIES %GTEST_RELEASE_LIBRARIES%
5262
setx GTEST_INCLUDE %GTEST_INCLUDE%
5363
setx GTEST_LIBRARY_DIR %GTEST_LIBRARY_DIR%
64+
REM
5465
set GTEST_
66+
echo done.
67+
echo.

0 commit comments

Comments
 (0)