This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
/
Makefile
104 lines (84 loc) · 3.27 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
# make install - getting an error? Run `npm install` first.
# The directive comes from mozilla/marketplace-gulp.
install:
@echo "ERROR: Please run `npm install` before running `make install`".
-include node_modules/marketplace-gulp/Makefile
TEST_URL?='http://localhost:8675'
package:
@node_modules/.bin/gulp package
iframe_package:
@node_modules/.bin/gulp iframe_package
.PHONY: package
REPO = "fireplace"
UUID = "e6a59937-29e4-456a-b636-b69afa8693b4"
DOMAIN?=marketplace.firefox.com
SERVER?=prod
deploy:
git fetch && git reset --hard origin/master && npm install && make includes
serve_package:
@pushd package/builds/_$(SERVER) && \
python -m SimpleHTTPServer 9676
serve_package_prod:
make serve_package
serve_package_stage:
SERVER='stage' make serve_package
serve_package_dev:
SERVER='dev' make serve_package
submit_package:
@open 'https://'$(DOMAIN)'/developers/app/marketplace/status#upload-new-version'
submit_package_prod:
make submit_package
submit_package_stage:
DOMAIN='marketplace.allizom.org' make submit_package
submit_package_dev:
DOMAIN='marketplace-dev.allizom.org' make submit_package
approve_package:
@open 'https://'$(DOMAIN)'/reviewers/apps/review/marketplace#review-actions'
approve_package_prod:
make approve_package
approve_package_stage:
DOMAIN='marketplace.allizom.org' make approve_package
approve_package_dev:
DOMAIN='marketplace-dev.allizom.org' make approve_package
submit_log:
@open 'https://'$(DOMAIN)'/developers/app/marketplace/status#upload-new-version'
submit_log_prod:
make submit_log
submit_log_stage:
DOMAIN='marketplace.allizom.org' make submit_log
submit_log_dev:
DOMAIN='marketplace-dev.allizom.org' make submit_log
approve_log:
@open 'https://'$(DOMAIN)'/reviewers/apps/review/marketplace#review-actions'
approve_log_prod:
make approve_log
approve_log_stage:
DOMAIN='marketplace.allizom.org' make approve_log
approve_log_dev:
DOMAIN='marketplace-dev.allizom.org' make approve_log
log:
@echo "This command has been removed. Use 'make iframe_package' instead."
test-iframe-package:
rm -f package/iframe/bundle.js
make iframe_package
test -f package/iframe/bundle.js
cmp -s package/iframe/bundle.js package/builds/_iframe_prod/bundle.js
MKT_URL=testurl ./node_modules/.bin/mocha package/iframe/tests/*
sherlocked:
sleep 10 && node sherlocked.js
install-firefox:
curl -O http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest-31.0esr/linux-x86_64/en-US/firefox-31.8.0esr.tar.bz2
tar jxf firefox-31.8.0esr.tar.bz2
VIRTUALENV_VERSION ?= '13.0.3'
WEBQA_VENV ?= '.virtualenvs/webqa'
WEBQA_TESTS ?= 'webqa-tests'
uitest-webqa:
${WEBQA_VENV}/bin/py.test -r=fsxXR --verbose -n=5 --baseurl=${TEST_URL} --driver=firefox --destructive -m "not credentials and not action_chains" ${WEBQA_TESTS}/tests/desktop/consumer_pages
install-webqa:
curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-${VIRTUALENV_VERSION}.tar.gz
tar xvfz virtualenv-${VIRTUALENV_VERSION}.tar.gz
test -d ${WEBQA_VENV} || virtualenv-${VIRTUALENV_VERSION}/virtualenv.py ${WEBQA_VENV}
${WEBQA_VENV}/bin/pip install -U pytest-timeout pytest-xdist
test -d ${WEBQA_TESTS}/.git || git clone --depth 1 https://github.com/mozilla/marketplace-tests/ ${WEBQA_TESTS}
git -C ${WEBQA_TESTS} pull
${WEBQA_VENV}/bin/pip install -Ur ${WEBQA_TESTS}/requirements.txt