-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Justin Carter
committed
Oct 15, 2020
1 parent
7d3559c
commit 1438034
Showing
8 changed files
with
64 additions
and
5 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 +1,2 @@ | ||
Empty - please add release notes here | ||
## Bug Fix | ||
- Fix `prepare` command |
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,16 @@ | ||
environments: | ||
subdir: | ||
latest: | ||
- test/fixtures/glob/**/*.yml | ||
testflight: | ||
latest: | ||
- test/fixtures/glob/*.yml | ||
- test/fixtures/glob/subdir/shared.yml | ||
- test/fixtures/glob/subdir/testflight.yml | ||
staging: | ||
passed: testflight | ||
propagated: | ||
- test/fixtures/glob/*.yml | ||
- test/fixtures/glob/subdir/shared.yml | ||
latest: | ||
- test/fixtures/glob/subdir/staging.yml |
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 @@ | ||
file: {} |
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 @@ | ||
shared: {} |
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 @@ | ||
staging: {} |
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 @@ | ||
testflight: {} |
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,30 @@ | ||
#!/usr/bin/env bats | ||
|
||
load "helpers" | ||
|
||
setup_file() { | ||
echo "Preparing 'glob'" | ||
prepare_test "glob" | ||
} | ||
|
||
teardown_file() { | ||
echo "Tearing down 'glob'" | ||
reset_repo_state | ||
} | ||
|
||
@test "ls testflight finds 3 files" { | ||
files="$(cmd ls -e testflight | wc -l)" | ||
[ "${files}" -eq 4 ] | ||
} | ||
|
||
@test "ls subdir finds 4 files" { | ||
files="$(cmd ls -e subdir | wc -l)" | ||
[ "${files}" -eq 5 ] | ||
} | ||
|
||
@test "Prepare staging should render 3 files" { | ||
cmd record -e testflight | ||
cmd prepare -e staging --force-clean | ||
files=$(find . -name '*.yml' | wc -l) | ||
[ "${files}" -eq 4 ] | ||
} |