-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg] Add tombstone deletion scripts. (#11189)
- Loading branch information
1 parent
4fc008c
commit 66d4f9d
Showing
4 changed files
with
77 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: MIT | ||
# | ||
variables: | ||
windows-pool: 'PrWin-2020-04-28' | ||
linux-pool: 'PrLin-2020-04-30' | ||
|
||
jobs: | ||
- job: windows | ||
displayName: 'Clean Windows Tombstones' | ||
pool: $(windows-pool) | ||
steps: | ||
- task: PowerShell@2 | ||
displayName: 'Initialize Environment' | ||
inputs: | ||
filePath: 'scripts/azure-pipelines/windows/initialize-environment.ps1' | ||
- script: rmdir /s /q archives\fail | ||
displayName: 'Delete archives\fail' | ||
- job: linux | ||
displayName: 'Clean Linux Tombstones' | ||
pool: $(linux-pool) | ||
steps: | ||
- task: Bash@3 | ||
displayName: 'Initialize Environment' | ||
inputs: | ||
filePath: scripts/azure-pipelines/linux/initialize-environment.sh | ||
- bash: rm -rf archives/fail | ||
displayName: 'Delete archives/fail' | ||
- job: osx | ||
displayName: 'Clean MacOS Tombstones' | ||
pool: | ||
name: vcpkgAgentPool | ||
demands: Agent.OS -equals Darwin | ||
steps: | ||
- task: Bash@3 | ||
displayName: 'Initialize Environment' | ||
inputs: | ||
filePath: 'scripts/azure-pipelines/osx/initialize-environment.sh' | ||
- bash: rm -rf archives/fail | ||
displayName: 'Delete archives/fail' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Sets up the environment for MacOS runs of vcpkg CI | ||
|
||
rm -rf installed || true | ||
mkdir -p ~/Data/installed || true | ||
ln -s ~/Data/installed | ||
rm -rf ~/Data/installed/* || true | ||
|
||
rm -rf buildtrees || true | ||
mkdir -p ~/Data/buildtrees || true | ||
ln -s ~/Data/buildtrees | ||
rm -rf ~/Data/buildtrees/* || true | ||
|
||
rm -rf packages || true | ||
mkdir -p ~/Data/packages || true | ||
ln -s ~/Data/packages | ||
rm -rf ~/Data/packages/* || true | ||
|
||
rm archives || rm -rf archives || true | ||
ln -s ~/Data/archives | ||
|
||
rm -rf downloads || true | ||
mkdir -p ~/Data/downloads || true | ||
ln -s ~/Data/downloads | ||
|
||
if [ -d downloads/ ]; then | ||
#delete downloaded files that have not been used in 7 days | ||
find downloads/ -maxdepth 1 -type f ! -atime 7 -exec rm -f {} \; | ||
fi |
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