forked from toolshed/abra
feat: abra release now asks for a release note (!393)
This implements coop-cloud/organising#540 by checking if a`release/next` file exists and if so moves it to `release/<tag>`. When no release notes exists it prompts for them. Reviewed-on: coop-cloud/abra#393 Reviewed-by: moritz <moritz.m@local-it.org> Co-authored-by: p4u1 <p4u1_f4u1@riseup.net> Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
This commit is contained in:
@ -5,6 +5,7 @@ _common_setup() {
|
||||
bats_load_library bats-assert
|
||||
bats_load_library bats-file
|
||||
|
||||
load "$PWD/tests/integration/helpers/file"
|
||||
load "$PWD/tests/integration/helpers/app"
|
||||
load "$PWD/tests/integration/helpers/git"
|
||||
load "$PWD/tests/integration/helpers/recipe"
|
||||
|
24
tests/integration/helpers/file.bash
Normal file
24
tests/integration/helpers/file.bash
Normal file
@ -0,0 +1,24 @@
|
||||
_mkfile() {
|
||||
run bash -c "echo $2 > $1"
|
||||
assert_success
|
||||
}
|
||||
|
||||
_mkfile_remote() {
|
||||
run $ABRA app run "$TEST_APP_DOMAIN" app "bash -c \"echo $2 > $1\""
|
||||
assert_success
|
||||
}
|
||||
|
||||
_mkdir() {
|
||||
run bash -c "mkdir -p $1"
|
||||
assert_success
|
||||
}
|
||||
|
||||
_rm() {
|
||||
run rm -rf "$1"
|
||||
assert_success
|
||||
}
|
||||
|
||||
_rm_remote() {
|
||||
run "$ABRA" app run "$TEST_APP_DOMAIN" app rm -rf "$1"
|
||||
assert_success
|
||||
}
|
@ -28,3 +28,10 @@ _reset_tags() {
|
||||
assert_success
|
||||
refute_output '0'
|
||||
}
|
||||
|
||||
_set_git_author() {
|
||||
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" config --local user.email test@example.com
|
||||
assert_success
|
||||
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" config --local user.name test
|
||||
assert_success
|
||||
}
|
||||
|
Reference in New Issue
Block a user