-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into updatecli_0af9fa03de4800958730c0202f9d3678…
…7ba56eeddf496e50e546f287dbfa768c
- Loading branch information
Showing
19 changed files
with
238 additions
and
331 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
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 |
---|---|---|
|
@@ -51,9 +51,7 @@ list: check-reqs | |
@set -x; make --silent show | jq -r '.target | path(.. | select(.platforms[] | contains("linux/$(ARCH)"))?) | add' | ||
|
||
bats: | ||
git clone https://github.com/bats-core/bats-core bats ;\ | ||
cd bats ;\ | ||
git checkout v1.7.0 | ||
git clone --branch v1.10.0 https://github.com/bats-core/bats-core bats | ||
|
||
prepare-test: bats check-reqs | ||
git submodule update --init --recursive | ||
|
@@ -79,10 +77,7 @@ test-%: prepare-test | |
@make --silent build-$* | ||
# Execute the test harness and write result to a TAP file | ||
set -x | ||
IMAGE=$* bats/bin/bats $(bats_flags) | tee target/results-$*.tap | ||
# convert TAP to JUNIT | ||
docker run --rm -v "$(CURDIR)":/usr/src/app -w /usr/src/app node:18.18.0-alpine3.18 \ | ||
sh -c "npm install -g [email protected] && npm install tap-xunit -g && cat target/results-$*.tap | tap-xunit --package='jenkinsci.docker.$*' > target/junit-results-$*.xml" | ||
IMAGE=$* bats/bin/bats --formatter junit $(bats_flags) | tee target/junit-results-$*.xml | ||
|
||
test: prepare-test | ||
@make --silent list | while read image; do make --silent "test-$${image}"; done |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Bump `bats` version | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
kind: githubrelease | ||
spec: | ||
owner: bats-core | ||
repository: bats-core | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
versionfilter: | ||
kind: semver | ||
|
||
targets: | ||
updateMakefile: | ||
name: "Updates `bats` version in the Makefile" | ||
kind: file | ||
spec: | ||
file: Makefile | ||
matchpattern: >- | ||
git clone --branch (.*) https://github.com/bats-core/bats-core bats | ||
replacepattern: >- | ||
git clone --branch {{ source "lastVersion" }} https://github.com/bats-core/bats-core bats | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
title: 'chore(tests): Bump `bats` version to {{ source "lastVersion" }}' | ||
spec: | ||
labels: | ||
- chore # Because bats is only used for testing | ||
- bats |
Oops, something went wrong.