~lifeless/storm/bug-620615

« back to all changes in this revision

Viewing changes to Makefile

Merging changes from James.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
PYTHON_VERSION = 2.4
3
3
TESTDB = storm_test
4
4
 
5
 
all:
6
 
        @:
7
 
 
8
 
check:
 
5
all: build
 
6
 
 
7
build:
 
8
        $(PYTHON) setup.py build_ext -i
 
9
 
 
10
check: build
9
11
        @echo "* Creating $(TESTDB)"
10
12
        @if psql -l | grep -q " $(TESTDB) "; then \
11
13
            dropdb $(TESTDB) >/dev/null; \
12
14
        fi
13
15
        createdb $(TESTDB)
 
16
        # Run the tests once ...
14
17
        STORM_POSTGRES_URI=postgres:$(TESTDB) $(PYTHON) test --verbose
 
18
        # And again with the C extensions disabled
 
19
        STORM_POSTGRES_URI=postgres:$(TESTDB) STORM_DISABLE_CEXTENSIONS=1 \
 
20
          $(PYTHON) test --verbose
15
21
 
16
 
.PHONY: all check
 
22
.PHONY: all build check