Skip to content

Commit

Permalink
Increased build speed by disabling building gmock.
Browse files Browse the repository at this point in the history
Updated `emulate_appveyor.bat` and `emulate_travis.sh` to fixed detection of CI build service.
  • Loading branch information
end2endzone committed Sep 8, 2018
1 parent b79ba2e commit 587b81b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions ci/appveyor/emulate_appveyor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

cd /d %~dp0
cd ..\..
set APPVEYOR=True
set APPVEYOR_BUILD_FOLDER=%cd%
echo Emulating appveyor's environment.
echo APPVEYOR_BUILD_FOLDER set to '%APPVEYOR_BUILD_FOLDER%'
Expand Down
2 changes: 1 addition & 1 deletion ci/appveyor/install_googletest.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo ===========================================================================
mkdir build >NUL 2>NUL
cd build
set GTEST_ROOT=%APPVEYOR_BUILD_FOLDER%\third_parties\googletest\install
cmake -DCMAKE_INSTALL_PREFIX=%GTEST_ROOT% -Dgtest_force_shared_crt=ON ..
cmake -DCMAKE_INSTALL_PREFIX=%GTEST_ROOT% -Dgtest_force_shared_crt=ON -DBUILD_GMOCK=OFF -DBUILD_GTEST=ON ..
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --build . --config Release
if %errorlevel% neq 0 exit /b %errorlevel%
Expand Down
1 change: 1 addition & 0 deletions ci/travis/emulate_travis.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
restore_dir=$PWD
cd ../..
export TRAVIS=true
export TRAVIS_BUILD_DIR=$PWD
echo "TRAVIS_BUILD_DIR set to $TRAVIS_BUILD_DIR"
cd $restore_dir
2 changes: 1 addition & 1 deletion ci/travis/install_googletest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo ===========================================================================
mkdir -p build
cd build
export GTEST_ROOT=$TRAVIS_BUILD_DIR/third_parties/googletest/install
cmake -DCMAKE_INSTALL_PREFIX=$GTEST_ROOT -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..
cmake -DCMAKE_INSTALL_PREFIX=$GTEST_ROOT -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_GMOCK=OFF -DBUILD_GTEST=ON ..
cmake --build .
echo

Expand Down

0 comments on commit 587b81b

Please sign in to comment.