-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated target rule to install and build test dependencies
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,12 @@ VERSION=$(shell python -c 'import networkapiclient; print networkapiclient.VERSI | |
# Pip executable path | ||
PIP := $(shell which pip) | ||
|
||
# GloboNetworkAPI project URL | ||
GNETAPIURL := [email protected]:/globocom/GloboNetworkAPI | ||
|
||
# Local path to GloboNetworkAPI used in tests | ||
GNETAPI_PATH := networkapi_test_project | ||
|
||
help: | ||
@echo | ||
@echo "Please use 'make <target>' where <target> is one of" | ||
|
@@ -43,7 +49,16 @@ setup: requirements.txt | |
$(PIP) install -r $^ | ||
|
||
test_setup: requirements_test.txt | ||
@echo "Installing test dependencies..." | ||
$(PIP) install -r $^ | ||
@echo "Cloning GloboNetworkAPI..." | ||
@if [ ! -d $(GNETAPI_PATH) ]; then \ | ||
git clone $(GNETAPIURL) $(GNETAPI_PATH); \ | ||
cd $(GNETAPI_PATH) && git submodule update --init --recursive; \ | ||
fi | ||
@echo "Running GloboNetworkAPI.." | ||
cd $(GNETAPI_PATH) && git pull origin master | ||
cd $(GNETAPI_PATH) && vagrant up --provider virtualbox | ||
|
||
install: | ||
@python setup.py install | ||
|