-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (34 loc) · 1.41 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
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY:
OTHER=other
LOCAL_REPO=$(shell pwd)/localRepo
ESCAPED_LOCAL_REPO=$(shell echo $(LOCAL_REPO) | sed 's/\//\\\//g')
VERSION=$(shell grep '^version ' plugin/build.gradle | cut -d "'" -f 2)
paparazzi-integration: publish
@echo
@echo PAPARAZZI
@echo
rm -rf $(OTHER)
git clone ssh://git@phabricator.tdrhq.com:2222/diffusion/23/paparazzi-example.git $(OTHER)
$(MAKE) update-other-repo
cd $(OTHER) && ./gradlew :sample:recordPaparazziDebugScreenshotbot
cd $(OTHER) && ./gradlew :sample:verifyPaparazziDebugScreenshotbot
roborazzi-integration: publish
@echo
@echo ROBORAZZI:
@echo
rm -rf $(OTHER)
git clone ssh://git@phabricator.tdrhq.com:2222/diffusion/24/roborazzi.git $(OTHER)
$(MAKE) update-other-repo
cd $(OTHER) && ./gradlew :sample-android:recordRoborazziDebugScreenshotbot
cd $(OTHER) && ./gradlew :sample-android:verifyRoborazziDebugScreenshotbot
fix-version:
cd $(OTHER) && sed -i "s/id 'io.screenshotbot.plugin' version '.*'/id 'io.screenshotbot.plugin' version '$(VERSION)'/" build.gradle */build.gradle
update-other-repo: fix-version update-maven-local
update-maven-local:
echo $(ESCAPED_LOCAL_REPO)
sed -i 's/home\/arnold\/myLocal/$(ESCAPED_LOCAL_REPO)/' $(OTHER)/settings.gradle
publish: .PHONY
./gradlew :plugin:publish
integration-tests-with-env: | publish paparazzi-integration roborazzi-integration
integration-tests:
ANDROID_HOME=/opt/software/android-sdk $(MAKE) integration-tests-with-env