Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame^] | 1 | |
| 2 | ISVENV := $(shell python -c 'import sys; print ("1" if hasattr(sys, "real_prefix") else "0")') |
| 3 | |
| 4 | build: |
| 5 | docker build -t xosproject/volt-synchronizer:candidate -f xos/synchronizer/Dockerfile.synchronizer ./xos/synchronizer/ |
| 6 | |
| 7 | test: |
| 8 | ifeq ($(ISVENV), 1) |
| 9 | pip install requests-mock |
| 10 | pushd xos/synchronizer/steps/; nosetests test_sync_olt_device.py; popd; |
| 11 | else |
| 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" |
| 13 | endif |