File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ VERSION=$(shell python -c 'import networkapiclient; print networkapiclient.VERSI
4
4
# Pip executable path
5
5
PIP := $(shell which pip)
6
6
7
+ # GloboNetworkAPI project URL
8
+ GNETAPIURL :=
[email protected] :/globocom/GloboNetworkAPI
9
+
10
+ # Local path to GloboNetworkAPI used in tests
11
+ GNETAPI_PATH := networkapi_test_project
12
+
7
13
help :
8
14
@echo
9
15
@echo " Please use 'make <target>' where <target> is one of"
@@ -43,7 +49,16 @@ setup: requirements.txt
43
49
$(PIP ) install -r $^
44
50
45
51
test_setup : requirements_test.txt
52
+ @echo " Installing test dependencies..."
46
53
$(PIP ) install -r $^
54
+ @echo " Cloning GloboNetworkAPI..."
55
+ @if [ ! -d $( GNETAPI_PATH) ]; then \
56
+ git clone $(GNETAPIURL ) $(GNETAPI_PATH ) ; \
57
+ cd $(GNETAPI_PATH ) && git submodule update --init --recursive; \
58
+ fi
59
+ @echo " Running GloboNetworkAPI.."
60
+ cd $(GNETAPI_PATH ) && git pull origin master
61
+ cd $(GNETAPI_PATH ) && vagrant up --provider virtualbox
47
62
48
63
install :
49
64
@python setup.py install
You can’t perform that action at this time.
0 commit comments