-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run snapshot test using corresponding branch
This commit extend clone-snapshots-ci make command by running checkout.sh script, which tries to make checkout to the source branch in Snapshots if it exists, otherwise tries to make checkout to the destination branch if it exists, otherwise makes checkout to master branch MOB-3716
- Loading branch information
1 parent
5f4bc1f
commit cc63f1b
Showing
2 changed files
with
4 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 |
---|---|---|
|
@@ -2,12 +2,14 @@ clone-snapshots: | |
@echo " ⏬ Cloning snapshots..." | ||
@command git clone [email protected]:salemove/ios-widgets-snapshots.git SnapshotTests/__Snapshots__ | ||
|
||
source_branch := $(shell git rev-parse --abbrev-ref HEAD) | ||
clone-snapshots-ci: | ||
@echo " ⏬ Cloning snapshots..." | ||
@command git clone $(repo_url) SnapshotTests/__Snapshots__ | ||
@command cd SnapshotTests/__Snapshots__ && ./checkout.sh $(SOURCE_BRANCH) $(destination_branch) | ||
|
||
commit-snapshots: | ||
@echo " 💾 Commiting snapshots..." | ||
@echo " 💾 Committing snapshots..." | ||
@command cd SnapshotTests/__Snapshots__ && git add . && git commit -a -m "Update snapshots." | ||
|
||
push-snapshots: | ||
|
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