-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add CONTEST_CONTENT_PR and CONTEST_OSCAP_PR
Signed-off-by: Jiri Jaburek <comps@nomail.dom>
- Loading branch information
Showing
4 changed files
with
90 additions
and
25 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
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 |
---|---|---|
@@ -1,5 +1 @@ | ||
summary: Default plan (simple for now) | ||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt |
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
summary: Test against a fresh build of upstream content | ||
|
||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
prepare+: | ||
- how: install | ||
package: | ||
- git-core | ||
- how: shell | ||
name: Download and build latest content | ||
script: | | ||
set -xe | ||
[ -n "$CONTEST_CONTENT_PR" ] && ref="refs/pull/$CONTEST_CONTENT_PR/head" || ref=HEAD | ||
content_dir=/root/upstream-content | ||
[ -e "$content_dir" ] || git init "$content_dir" | ||
cd "$content_dir" | ||
git fetch --depth=1 https://github.com/ComplianceAsCode/content.git "$ref" | ||
# remove any previously built content | ||
git clean -ffdx | ||
git checkout FETCH_HEAD | ||
|
||
adjust+: | ||
- prepare+: | ||
- how: install | ||
package: | ||
- git-core | ||
- how: shell | ||
name: Download and build latest content | ||
script: | | ||
if [ ! -e /root/content ]; then | ||
git clone --depth=1 https://github.com/ComplianceAsCode/content.git /root/content | ||
fi | ||
|
||
- environment+: | ||
CONTEST_CONTENT: /root/content | ||
CONTEST_WAIVERS: upstream | ||
environment+: | ||
CONTEST_CONTENT: /root/upstream-content | ||
CONTEST_WAIVERS: upstream |