blob: ab0711c4c42ffbeb18864cfcdab1cb9f55cf4474 [file] [log] [blame]
# Copyright 2014 the Melange authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# all targets are PHONY because they don't actually generate a file with the
# name of the target.
.PHONY: setup test pylint lint localserver gitclean
# setup target sets up the basics of the development environment
setup:
virtualenv venv
venv/bin/pip install -U lxml setuptools
venv/bin/python bootstrap.py
bin/buildout
bin/gen-app-yaml local-devel
bin/paver build --skip-pylint
# run all the tests
test:
bin/run-tests
# run only the lint tests
pylint:
bin/run-tests -t pylint
lint: pylint
# start a local instance. defaults to port 8080 for the app and 8000
# for the appengine console
localserver:
thirdparty/google_appengine/dev_appserver.py build
# return to a pristine git checkout. *DELETES EVERYTHING WITHOUT PROMPTING*
gitclean:
git clean -xdf