-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-17166] Gate UT, IT and DocBuild
Adds a gate behind VerifyBuild that will tell the other jobs which of them should run depending on which directories in the source tree have been updated Signed-off-by: Brett Logan <Brett.T.Logan@ibm.com>
- Loading branch information
Brett Logan
authored and
Brett Logan
committed
Dec 1, 2019
1 parent
4947729
commit f0422d6
Showing
2 changed files
with
21 additions
and
1 deletion.
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
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,12 @@ | ||
#!/bin/bash | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
set -euo pipefail | ||
|
||
if [[ $(git diff-tree --no-commit-id --name-only 'HEAD^..HEAD') == "docs" ]]; then | ||
echo "##vso[task.setvariable variable=buildDoc;isOutput=true]true" | ||
else | ||
echo "##vso[task.setvariable variable=buildDoc;isOutput=true]true" | ||
echo "##vso[task.setvariable variable=runTests;isOutput=true]true" | ||
fi |