Skip to content

Commit 8e4bb35

Browse files
committed
Don't build the tests or the CLI
1 parent 74d6ba0 commit 8e4bb35

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎build.libgit2.ps1‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ $hashFile = Join-Path $projectDirectory "nuget.package\libgit2\libgit2_hash.txt"
3434
$sha=Get-Content$hashFile
3535
$binaryFilename="git2-"+$sha.Substring(0,7)
3636

37-
$build_clar='OFF'
38-
if ($test.IsPresent){$build_clar='ON' }
37+
$build_tests='OFF'
38+
if ($test.IsPresent){$build_tests='ON' }
3939

4040
$configuration="Release"
4141
if ($debug.IsPresent){$configuration="Debug" }
@@ -120,7 +120,7 @@ try{
120120

121121
if ($x86.IsPresent){
122122
Write-Output"Building x86..."
123-
Run-Command -Fatal{&$cmake-A Win32 -D ENABLE_TRACE=ON -D USE_SSH=OFF -D "BUILD_CLAR=$build_clar"-D "BUILD_CLI=OFF"-D "LIBGIT2_FILENAME=$binaryFilename" .. }
123+
Run-Command -Fatal{&$cmake-A Win32 -D ENABLE_TRACE=ON -D USE_SSH=OFF -D "BUILD_TESTS=$build_tests"-D "BUILD_CLI=OFF"-D "LIBGIT2_FILENAME=$binaryFilename" .. }
124124
Run-Command -Fatal{&$cmake--build .--config $configuration }
125125
if ($test.IsPresent){Run-Command -Quiet -Fatal{&$ctest-V . } }
126126
cd $configuration
@@ -136,7 +136,7 @@ try{
136136
Write-Output"Building x64..."
137137
Run-Command -Quiet{& mkdir build64 }
138138
cd build64
139-
Run-Command -Fatal{&$cmake-A x64 -D THREADSAFE=ON -D USE_SSH=OFF -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar"-D "BUILD_CLI=OFF"-D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
139+
Run-Command -Fatal{&$cmake-A x64 -D THREADSAFE=ON -D USE_SSH=OFF -D ENABLE_TRACE=ON -D "BUILD_TESTS=$build_tests"-D "BUILD_CLI=OFF"-D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
140140
Run-Command -Fatal{&$cmake--build .--config $configuration }
141141
if ($test.IsPresent){Run-Command -Quiet -Fatal{&$ctest-V . } }
142142
cd $configuration
@@ -151,7 +151,7 @@ try{
151151
Write-Output"Building arm64..."
152152
Run-Command -Quiet{& mkdir buildarm64 }
153153
cd buildarm64
154-
Run-Command -Fatal{&$cmake-A ARM64 -D THREADSAFE=ON -D USE_SSH=OFF -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar"-D "BUILD_CLI=OFF"-D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
154+
Run-Command -Fatal{&$cmake-A ARM64 -D THREADSAFE=ON -D USE_SSH=OFF -D ENABLE_TRACE=ON -D "BUILD_TESTS=$build_tests"-D "BUILD_CLI=OFF"-D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
155155
Run-Command -Fatal{&$cmake--build .--config $configuration }
156156
if ($test.IsPresent){Run-Command -Quiet -Fatal{&$ctest-V . } }
157157
cd $configuration

0 commit comments

Comments
(0)