mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
74c4289c9f
fix #10639 Source-Repo: https://github.com/servo/servo Source-Revision: 4d80e0634ed58580a7d30fc7f57e6bdf4aa4e19d
26 lines
460 B
Makefile
26 lines
460 B
Makefile
PYTHON := python
|
|
VENV := env-$(PYTHON)
|
|
|
|
# for travis
|
|
|
|
$(VENV)/bin/python:
|
|
[ -d $(VENV) ] || $(PYTHON) -m virtualenv $(VENV) || virtualenv $(VENV)
|
|
$(VENV)/bin/pip install --upgrade setuptools
|
|
$(VENV)/bin/python setup.py develop
|
|
|
|
|
|
.PHONY: dev-env
|
|
dev-env: $(VENV)/bin/python
|
|
|
|
|
|
# for testing
|
|
.PHONY: test
|
|
test: dev-env
|
|
$(VENV)/bin/python -m unittest discover -s servo_tidy_tests -v
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
find . -name "*.pyc" -type f -delete
|
|
rm -rf $(VENV)
|