-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
39 lines (31 loc) · 1.53 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
clone-snapshots:
@echo " ⏬ Cloning snapshots..."
@command git clone [email protected]:salemove/ios-widgets-snapshots.git SnapshotTests/__Snapshots__
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 " 💾 Committing snapshots..."
@command cd SnapshotTests/__Snapshots__ && git add . && git commit -a -m "Update snapshots."
push-snapshots:
@echo " ⬆️ Pushing snapshots..."
@command cd SnapshotTests/__Snapshots__ && git push origin master --force
pull-snapshots:
@echo " ⬇️ Pulling snapshots..."
@command cd SnapshotTests/__Snapshots__ && git pull --rebase origin master
setup-git:
@echo " 🏗 Setting up Git..."
@command cd SnapshotTests/__Snapshots__ && git init
@command cd SnapshotTests/__Snapshots__ && git remote add origin [email protected]:salemove/ios-widgets-snapshots.git
install-lfs:
@echo " 👨🔧 Installing Git LFS..."
@command cd SnapshotTests/__Snapshots__ && git lfs install
@command cd SnapshotTests/__Snapshots__ && git lfs track "*.png"
@command cd SnapshotTests/__Snapshots__ && git add .gitattributes && git commit -a -m "Add .gitattributes"
write-diff:
@echo " ✍️ Writing changes (if any) to file..."
@command cd SnapshotTests/__Snapshots__ && git diff --name-only > ./../Changes.diff
integrate-githooks:
@echo " Setting core.hooksPath in local git config "
@command git config core.hooksPath .git-hooks