Add trigger by URL tests for forgehook interop
This commit is contained in:
parent
ec018c892f
commit
977a20da88
|
@ -92,6 +92,23 @@ function clean {
|
|||
[[ "$TIME" != "$NEWTIME" ]]
|
||||
}
|
||||
|
||||
@test "update by source URL works" {
|
||||
echo "FALSESOURCE" > "$FORGEBUILDDIR"/branch.source
|
||||
$FORGEBUILD -b $FORGEBUILDDIR "$GITREPO"
|
||||
[ -f /tmp/forgebuild-host ]
|
||||
[ -f /tmp/forgebuild-time ]
|
||||
[ ! -f /tmp/forgebuild-branch ]
|
||||
}
|
||||
|
||||
@test "update can mix source URL and task name" {
|
||||
git init $BATS_TMPDIR/newrepo
|
||||
echo "$BATS_TMPDIR/newrepo" > "$FORGEBUILDDIR"/branch.source
|
||||
$FORGEBUILD -b $FORGEBUILDDIR "$GITREPO" "branch"
|
||||
[ -f /tmp/forgebuild-host ]
|
||||
[ -f /tmp/forgebuild-time ]
|
||||
[ -f /tmp/forgebuild-branch ]
|
||||
}
|
||||
|
||||
@test "support any default branch (not just master)" {
|
||||
cd $GITREPO
|
||||
# Move "master" to "default" branch
|
||||
|
|
Loading…
Reference in New Issue