-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (47 loc) · 1.86 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Install using the source
install:
cd virtstrap-core; pip install .
cd virtstrap; pip install .
# Install an editable version of the source
install-develop:
cd virtstrap-core/; pip install -e .
cd virtstrap/; pip install -e .
# Setup the development environment
develop:
python vstrap.py
source quickactivate.sh; cd virtstrap-core/; python setup.py develop
source quickactivate.sh; cd virtstrap/; python setup.py develop
source quickactivate.sh; cd virtstrap-local/; python setup.py develop
# Runs fast(ish) tests using only the current python environment
quicktest:
@echo "******************VIRTSTRAP-CORE TESTS*******************"
@cd virtstrap-core; make ptest
@echo "******************VIRTSTRAP (MAIN WRAPPER) TESTS*******************"
@cd virtstrap; make ptest
@echo "******************VIRTSTRAP-LOCAL TESTS*******************"
@cd virtstrap-local; make ptest
@make testexamples
testexamples:
@echo "******************HIGH-LEVEL SHELL TESTS*******************"
@cd tests; sh run_tests
# Test all of the pac
testall: toxtests
@cd tests; sh run_tests
# Runs all the tox tests
toxtests:
@echo "******************VIRTSTRAP-CORE TESTS*******************"
@cd virtstrap-core; tox
@echo "******************VIRTSTRAP (MAIN WRAPPER) TESTS*******************"
@cd virtstrap; tox
@echo "******************VIRTSTRAP-LOCAL TESTS*******************"
@cd virtstrap-local; tox
# Create support files for the virtstrap package
supportfiles:
@cd virtstrap; rm virtstrap_support/virtstrap-*
@cd virtstrap-core; rm -r dist; python setup.py sdist; cp dist/*.tar.gz ../virtstrap/virtstrap_support
@cd virtstrap-local; rm -r dist; python setup.py sdist; cp dist/*.tar.gz ../virtstrap/virtstrap_support
# Packages and ships to PyPI
distribute:
@cd virtstrap; python setup.py sdist upload
@cd virtstrap-core; python setup.py sdist upload
@cd virtstrap-local; python setup.py sdist upload