~cjwatson/storm/zope-interface-class-decorators

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Colin Watson
  • Date: 2019-05-31 15:27:10 UTC
  • mfrom: (487.2.1 tox)
  • Revision ID: cjwatson@canonical.com-20190531152710-5baic1ji8cm3ojqv
Add tox testing support. [r=simpoir]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
PYTHON ?= python
2
2
PYDOCTOR ?= pydoctor
3
 
PGPORT ?= 5432
4
3
 
5
4
TEST_COMMAND = $(PYTHON) setup.py test
6
5
 
7
 
STORM_POSTGRES_URI = postgres:storm_test
8
 
STORM_POSTGRES_HOST_URI = postgres://localhost:$(PGPORT)/storm_test
9
 
 
10
 
export STORM_POSTGRES_URI
11
 
export STORM_POSTGRES_HOST_URI
12
 
 
13
6
all: build
14
7
 
15
8
build:
19
12
        $(TEST_COMMAND) --quiet --dry-run
20
13
 
21
14
check:
22
 
        @ # Run the tests once with C extensions and once without them.
23
 
        STORM_CEXTENSIONS=0 $(TEST_COMMAND)
24
 
        STORM_CEXTENSIONS=1 $(TEST_COMMAND)
 
15
        tox
25
16
 
26
 
check-with-trial: develop
27
 
        STORM_TEST_RUNNER=trial STORM_CEXTENSIONS=0 $(PYTHON) test
28
 
        STORM_TEST_RUNNER=trial STORM_CEXTENSIONS=1 $(PYTHON) test
 
17
check-with-trial:
 
18
        STORM_TEST_RUNNER=trial tox
29
19
 
30
20
doc:
31
21
        $(PYDOCTOR) --make-html --html-output apidoc --add-package storm
41
31
        rm -rf debian/files
42
32
        rm -rf debian/python-storm
43
33
        rm -rf debian/python-storm.*
 
34
        rm -rf .tox
44
35
        rm -rf *.egg
45
36
        rm -rf _trial_temp
46
37
        find . -name "*.so" -type f -exec rm -f {} \;