This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
124 lines (71 loc) · 4.71 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
export APPLITOOLS_BATCH_ID=$(shell python -c "import uuid;print(str(uuid.uuid4()))")
install_dev_requirements: install_test_requirements install_packages_editable
python -m pip install --upgrade pre-commit
install_packages_editable: eyes_universal eyes_selenium eyes_robotframework
for PACK in $^; do echo cd $$PACK && python -m pip install --upgrade --editable $$PACK; done
install_eyes_selenium: eyes_selenium/dist eyes_robotframework/dist install_eyes_universal
python -m pip install eyes_selenium/dist/*
install_eyes_robotframework: eyes_selenium/dist eyes_robotframework/dist install_eyes_universal
python -m pip install eyes_selenium/dist/* eyes_robotframework/dist/*
install_eyes_universal: eyes_universal/dist
python -m pip install --no-index --find-links=file:eyes_universal/dist/ eyes_universal
install_test_requirements:
python -m pip install --requirement requirements-test.txt
uninstall:
python -m pip uninstall -y eyes-robotframework eyes-selenium eyes-universal
publish_eyes_selenium: SELENIUM_CHANGELOG := $$(bash ./ci_scripts/extract_changelog.sh ${SDK_VERSION} eyes_selenium/CHANGELOG.md)
publish_eyes_selenium: TEST_COVERAGE_GAP := $$(cat ./ci_scripts/testCoverageGap.txt)
publish_eyes_selenium: eyes_selenium/dist install_publish_requirements
bash ./ci_scripts/send_mail.sh python ${SDK_VERSION} "${SELENIUM_CHANGELOG}" "${TEST_COVERAGE_GAP}"
twine upload --verbose eyes_selenium/dist/*
publish_testing_eyes_selenium: SELENIUM_CHANGELOG := $$(bash ./ci_scripts/extract_changelog.sh ${SDK_VERSION} eyes_selenium/CHANGELOG.md)
publish_testing_eyes_selenium: TEST_COVERAGE_GAP := $$(cat ./ci_scripts/testCoverageGap.txt)
publish_testing_eyes_selenium: eyes_selenium/dist install_publish_requirements
echo bash ./ci_scripts/send_mail.sh python ${SDK_VERSION} "${SELENIUM_CHANGELOG}" "${TEST_COVERAGE_GAP}"
twine upload --verbose --repository testpypi eyes_selenium/dist/*
publish_eyes_robotframework: ROBOTFRAMEWORK_CHANGELOG := $$(bash ./ci_scripts/extract_changelog.sh ${SDK_VERSION} eyes_robotframework/CHANGELOG.md)
publish_eyes_robotframework: TEST_COVERAGE_GAP := $$(cat ./ci_scripts/testCoverageGap.txt)
publish_eyes_robotframework: eyes_robotframework/dist install_publish_requirements
bash ./ci_scripts/send_mail.sh python ${SDK_VERSION} "${ROBOTFRAMEWORK_CHANGELOG}" "${TEST_COVERAGE_GAP}"
twine upload --verbose eyes_robotframework/dist/*
publish_testing_eyes_robotframework: ROBOTFRAMEWORK_CHANGELOG := $$(bash ./ci_scripts/extract_changelog.sh ${SDK_VERSION} eyes_robotframework/CHANGELOG.md)
publish_testing_eyes_robotframework: TEST_COVERAGE_GAP := $$(cat ./ci_scripts/testCoverageGap.txt)
publish_testing_eyes_robotframework: eyes_robotframework/dist install_publish_requirements
echo bash ./ci_scripts/send_mail.sh python ${SDK_VERSION} "${ROBOTFRAMEWORK_CHANGELOG}" "${TEST_COVERAGE_GAP}"
twine upload --verbose --repository testpypi eyes_robotframework/dist/*
publish_eyes_universal: eyes_universal/dist install_publish_requirements
twine upload --verbose eyes_universal/dist/*
publish_testing_eyes_universal: eyes_universal/dist install_publish_requirements
twine upload --verbose --repository testpypi eyes_universal/dist/*
install_publish_requirements:
python -m pip install twine
dist: eyes_universal/dist eyes_selenium/dist eyes_robotframework/dist
eyes_universal/dist:
cd eyes_universal && make dist
eyes_selenium/dist:
cd eyes_selenium && python setup.py --quiet sdist
eyes_robotframework/dist:
cd eyes_robotframework && python setup.py --quiet sdist
clean:
cd eyes_universal && make clean
rm -rf eyes_selenium/dist eyes_selenium/eyes_selenium.egg-info
rm -rf eyes_robotframework/dist eyes_robotframework/src/eyes_robotframework.egg-info
rm -rf dist
rm -rf bin
gen_robot_docs:
python -m robot.libdoc --format html EyesLibrary docs/eyes_robotframework/keywords.html
eyes_selenium_unit_tests: install_eyes_robotframework install_test_requirements
pytest -n6 tests/unit
eyes_selenium_installation_tests: install_eyes_robotframework install_test_requirements
pytest tests/test_installation.py
eyes_selenium_generated_tests: install_eyes_selenium install_test_requirements
chmod a+x ./coverage-tests/python_tests.sh
npm run python:tests --prefix ./coverage-tests
eyes_robotframework_functional_tests: install_xvfb install_eyes_robotframework install_test_requirements
xvfb-run --auto-servernum pytest -n6 tests/functional/eyes_robotframework/test_integration.py::test_suite_web
eyes_selenium_functional_tests: install_eyes_selenium install_test_requirements
pytest -n6 -m "not sauce" tests/functional/eyes_selenium/
eyes_selenium_sauce_functional_tests: install_eyes_selenium install_test_requirements
pytest -m sauce tests/functional/eyes_selenium/
install_xvfb:
sudo apt-get install -y xvfb