-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 782 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 782 Bytes
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
BOOTSTRAP_URL=http://downloads.buildout.org/2/bootstrap.py
.PHONY: default clean very-clean
# Runs buildout
default: bin/buildout
python bin/buildout
# Runs bootstrap
bin/buildout: bootstrap.py
mkdir -p var/
python bootstrap.py
# Gets bootstrap
bootstrap.py:
wget $(BOOTSTRAP_URL)
# Destroys existing test database and creates a new one
db:
rm -f var/db/*.db
python bin/django migrate --no-initial-data
python bin/django migrate
python bin/django loaddata src/competition/fixtures/*.yaml
test: bin/buildout
python bin/buildout install simple-django var-directory
python bin/nosey
clean:
find ./ -name *.pyc -delete
find ./ -name *.~ -delete
very-clean: clean
@# This may vary depending where buildout sticks stuff.
rm -f bootstrap.py
rm -rf bin/
rm -rf var/