-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression on Windows; run sanity tests on Windows (#162)
- Loading branch information
1 parent
f7e6f6e
commit c53952b
Showing
2 changed files
with
38 additions
and
2 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
orbs: | ||
win: circleci/[email protected] | ||
|
||
executors: | ||
custom: | ||
docker: | ||
|
@@ -70,6 +73,7 @@ jobs: | |
root: /home/circleci/kube-linter | ||
paths: | ||
- .gobin/kube-linter | ||
- bin/windows/kube-linter.exe | ||
|
||
e2e-test: | ||
executor: custom | ||
|
@@ -82,7 +86,32 @@ jobs: | |
name: Run E2E tests | ||
command: | | ||
make e2e-test | ||
sanity-test-windows: | ||
executor: | ||
name: win/default # references orb defined above. | ||
size: "medium" | ||
|
||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /home/circleci/kube-linter | ||
|
||
- run: | ||
name: Run E2E tests | ||
shell: bash.exe | ||
command: | | ||
# In Windows, the workspace is attached relative to the current directory. | ||
tag="$(./get-tag)" | ||
cd home/circleci/kube-linter/bin/windows | ||
version_from_bin="$(./kube-linter.exe version)" | ||
echo "Expected tag ${tag}, got ${version_from_bin}" | ||
[[ "${tag}" == "${version_from_bin}" ]] | ||
# Make sure the lint command can run without errors. | ||
# TODO: run the full suite of E2E tests on Windows. | ||
./kube-linter.exe lint . | ||
image: | ||
executor: custom | ||
steps: | ||
|
@@ -177,6 +206,10 @@ workflows: | |
<<: *runOnAllTags | ||
requires: | ||
- build | ||
- sanity-test-windows: | ||
<<: *runOnAllTags | ||
requires: | ||
- build | ||
- image: | ||
<<: *runOnAllTags | ||
context: docker-io-push |
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