forked from cobrateam/splinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 1.01 KB
/
Makefile
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
38
39
40
# Copyright 2013 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
all: test
clean:
@find . -name "*.pyc" -delete
doc_dependencies:
@pip install -r doc-requirements.txt --use-mirrors
dependencies:
@pip install -r test-requirements.txt --use-mirrors
doc: doc_dependencies
@cd docs && make clean && make html
release:
@sed -ic -e s/`cat VERSION`/$(version)/ setup.py docs/conf.py splinter/__init__.py
@echo $(version) > VERSION
@git add setup.py docs/conf.py VERSION splinter/__init__.py
@git commit -m "setup: bump to $(version)"
@git tag $(version)
@git push --tags
@git push origin master
@python setup.py sdist upload
which = 'tests'
test: dependencies clean
@echo "Running all tests..."
./run_tests.py -w $(which)
format: clean dependencies
@flake8 --max-line-length 110 splinter
coverage: dependencies clean
@echo "Running all tests with coverage..."
@coverage run run_tests.py -w $(which) && coverage report