blob: e1591cada555bb0767b150dd7901f9f93c9faa86 [file] [log] [blame]
Matteo Scandolo4a8b4d62018-03-06 17:18:46 -08001
2ISVENV := $(shell python -c 'import sys; print ("1" if hasattr(sys, "real_prefix") else "0")')
3
4build:
5 docker build -t xosproject/volt-synchronizer:candidate -f xos/synchronizer/Dockerfile.synchronizer ./xos/synchronizer/
6
7test:
8ifeq ($(ISVENV), 1)
9 pip install requests-mock
10 pushd xos/synchronizer/steps/; nosetests test_sync_olt_device.py; popd;
11else
12 @echo "Please activate the virtualenv and the required libraries, you can do that using the 'scripts/setup_venv.sh' tool in the 'xos' repo"
13endif