You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
repoapi/Makefile

34 lines
810 B

all:
.ONESHELL:
SHELL = /bin/bash
venv_test: requirements/test.txt
virtualenv --python=python2.7 venv_test
source ./venv_test/bin/activate && \
pip install -r ./requirements/test.txt > install.log
.ONESHELL:
SHELL = /bin/bash
venv_dev: requirements/dev.txt
virtualenv --python=python2.7 venv_dev
source ./venv_dev/bin/activate && \
pip install -r ./requirements/dev.txt > install.log
test: venv_test
source ./venv_test/bin/activate && \
DJANGO_SETTINGS_MODULE="repoapi.settings.dev" ./manage.py jenkins
run_dev: venv_dev
source ./venv_dev/bin/activate && \
DJANGO_SETTINGS_MODULE="repoapi.settings.dev" ./manage.py runserver_plus
# get rid of test files
clean:
rm -rf reports install.log
# also get rid of pip environment
dist-clean: clean
rm -rf venv*
.PHONY: all test clean dist-clean