-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --clean-non-downloads-after-build switch to be used by CI to redu…
…ce our disk consumption there. (#66) * Add --clean-non-downloads-after-build switch to be used by CI to reduce our disk consumption there. * Change --clean-non-downloads-after-build to separate switches for each of the 3. * Delete Util::MoveOnlyBase and Util::ResourceBase.
- Loading branch information
1 parent
1bc8779
commit d448a0e
Showing
15 changed files
with
170 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
azure-pipelines/end-to-end-tests-dir/clean-after-build.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
. $PSScriptRoot/../end-to-end-tests-prelude.ps1 | ||
|
||
$CurrentTest = "Clean After Build" | ||
|
||
$ZlibInstalledHeader = Join-Path $installRoot "$Triplet/include/zlib.h" | ||
$ZlibDownloadTarball = Join-Path $downloadsRoot 'zlib1211.tar.gz' | ||
$ZlibPackageRoot = Join-Path $packagesRoot "zlib_$Triplet" | ||
$ZlibSrc = Join-Path $buildtreesRoot "zlib/src" | ||
|
||
$installZlibArgs = @("install", "zlib", "--no-binarycaching") | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileExists $ZlibDownloadTarball | ||
Require-FileExists $ZlibPackageRoot | ||
Require-FileExists $ZlibSrc | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs + @("--clean-packages-after-build")) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileExists $ZlibDownloadTarball | ||
Require-FileNotExists $ZlibPackageRoot | ||
Require-FileExists $ZlibSrc | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs + @("--clean-buildtrees-after-build")) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileExists $ZlibDownloadTarball | ||
Require-FileExists $ZlibPackageRoot | ||
Require-FileNotExists $ZlibSrc | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs + @("--clean-packages-after-build", "--clean-buildtrees-after-build")) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileExists $ZlibDownloadTarball | ||
Require-FileNotExists $ZlibPackageRoot | ||
Require-FileNotExists $ZlibSrc | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs + @("--clean-buildtrees-after-build")) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileExists $ZlibDownloadTarball | ||
Require-FileExists $ZlibPackageRoot | ||
Require-FileNotExists $ZlibSrc | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs + @("--clean-downloads-after-build", "--clean-packages-after-build", "--clean-buildtrees-after-build")) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileNotExists $ZlibDownloadTarball | ||
Require-FileNotExists $ZlibPackageRoot | ||
Require-FileNotExists $ZlibSrc | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs + @("--clean-after-build")) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileNotExists $ZlibDownloadTarball | ||
Require-FileNotExists $ZlibPackageRoot | ||
Require-FileNotExists $ZlibSrc | ||
|
||
Refresh-TestRoot | ||
Run-Vcpkg -TestArgs ($commonArgs + $installZlibArgs + @("--clean-after-build", "--clean-downloads-after-build", "--clean-packages-after-build", "--clean-buildtrees-after-build")) | ||
Require-FileExists $ZlibInstalledHeader | ||
Require-FileNotExists $ZlibDownloadTarball | ||
Require-FileNotExists $ZlibPackageRoot | ||
Require-FileNotExists $ZlibSrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.