-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exclude branches from octopus with -e pattern
- Loading branch information
1 parent
f419866
commit aeced44
Showing
4 changed files
with
72 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM lesfurets/octopus-tests:simple_merge_latest | ||
ADD test.sh /home/ | ||
ADD bin /usr/local/bin | ||
RUN chmod +x /home/test.sh | ||
WORKDIR /home/octopus-tests/ | ||
CMD /home/test.sh |
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,25 @@ | ||
#!/bin/bash | ||
|
||
#FIXME | ||
git status &> /dev/null | ||
|
||
git checkout features/feat1 | ||
git config octopus.pattern features/* | ||
git config --add octopus.pattern master | ||
|
||
git config octopus.excludePattern "features/feat3" | ||
|
||
git octopus | ||
merged=`git branch --merged` | ||
if [[ $merged != *feat1* ]] ; then | ||
exit 1 | ||
fi | ||
if [[ $merged != *feat2* ]] ; then | ||
exit 1 | ||
fi | ||
if [[ $merged == *feat3* ]] ; then | ||
exit 1 | ||
fi | ||
if [[ $merged != *master* ]] ; then | ||
exit 1 | ||
fi |