Skip to content

Commit abd5fdf

Browse files
committed
Updated target rule to install and build test dependencies
1 parent f792954 commit abd5fdf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ VERSION=$(shell python -c 'import networkapiclient; print networkapiclient.VERSI
44
# Pip executable path
55
PIP := $(shell which pip)
66

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+
713
help:
814
@echo
915
@echo "Please use 'make <target>' where <target> is one of"
@@ -43,7 +49,16 @@ setup: requirements.txt
4349
$(PIP) install -r $^
4450

4551
test_setup: requirements_test.txt
52+
@echo "Installing test dependencies..."
4653
$(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
4762

4863
install:
4964
@python setup.py install

0 commit comments

Comments
 (0)