forked from heynemann/pyccuracy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (44 loc) · 1.31 KB
/
Makefile
File metadata and controls
57 lines (44 loc) · 1.31 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Makefile for Pyccuracy
#
# You can set these variables from the command line.
# Internal variables.
.PHONY: help build test upload docs selenium
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " build to run a build"
@echo " test to run all the tests"
@echo " upload to run a build and upload to PyPI"
@echo " docs to build documentation"
build:
@echo "=================="
@echo "Starting the build"
@echo "=================="
@rm -f -r ./pyccuracy/build
@rm -f -r ./pyccuracy/*.pyc
@rm -f -r ./pyccuracy/actions/*.pyc
@python -m compileall ./pyccuracy
@echo "==============="
@echo "Build finished!"
@echo "==============="
test: build
@echo "================="
@echo "Starting tests..."
@echo "================="
@for f in `ls tests | grep --regex="test_.*\.py$$"` ; do \
cd tests && python $$f && cd .. && echo $$env; \
done
@python ./tests/action_tests/test_all.py
upload:
@echo "Running a build..."
@echo off
@rm -f -r ./pyccuracy/build
@python setup.py sdist upload
@echo "Build finished and uploaded!"
docs:
@$(MAKE) -C ./docs -f Makefile clean
@$(MAKE) -C ./docs -f Makefile html
tar -cf ./docs/current_docs.tar ./docs/build/html/*
deb:
mv .git /tmp/pyccuracy_git
python -c 'import os;os.system("debuild")'
mv /tmp/pyccuracy_git .git