Skip to content

Commit

Permalink
Updated target rule to install and build test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pantuza committed Dec 21, 2016
1 parent f792954 commit abd5fdf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit abd5fdf

Please sign in to comment.