| garciadeblas | 9453a8a | 2017-03-09 16:21:24 +0100 | [diff] [blame] | 1 | SHELL := /bin/bash |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 2 | all: pypackage debpackage |
| garciadeblas | 9453a8a | 2017-03-09 16:21:24 +0100 | [diff] [blame] | 3 | |
| 4 | prepare: |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 5 | mkdir -p build/ |
| 6 | cp MANIFEST.in build/ |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 7 | cp requirements.txt build/ |
| 8 | cp README.rst build/ |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 9 | cp setup.py build/ |
| 10 | cp -r osm_ro build/ |
| 11 | cp openmano build/ |
| 12 | cp openmanod.py build/ |
| 13 | cp openmanod.cfg build/ |
| 14 | cp osm-ro.service build/ |
| 15 | cp -r vnfs build/osm_ro |
| 16 | cp -r scenarios build/osm_ro |
| 17 | cp -r instance-scenarios build/osm_ro |
| 18 | cp -r scripts build/osm_ro |
| 19 | cp -r database_utils build/osm_ro |
| garciadeblas | 9453a8a | 2017-03-09 16:21:24 +0100 | [diff] [blame] | 20 | |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 21 | connectors: prepare |
| 22 | # python-novaclient is required for that |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 23 | rm -f build/osm_ro/openmanolinkervimconn.py |
| 24 | cd build/osm_ro; for i in `ls vimconn_*.py |sed "s/\.py//"` ; do echo "import $$i" >> openmanolinkervimconn.py; done |
| 25 | python build/osm_ro/openmanolinkervimconn.py |
| 26 | rm -f build/osm_ro/openmanolinkervimconn.py |
| garciadeblas | 9453a8a | 2017-03-09 16:21:24 +0100 | [diff] [blame] | 27 | |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 28 | build: connectors prepare |
| 29 | python -m py_compile build/osm_ro/*.py |
| garciadeblas | 9453a8a | 2017-03-09 16:21:24 +0100 | [diff] [blame] | 30 | |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 31 | pypackage: prepare |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 32 | cd build; ./setup.py sdist |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 33 | cd build; ./setup.py bdist_wheel |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 34 | |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 35 | debpackage: prepare |
| 36 | echo "Nothing to be done" |
| 37 | #cd build; ./setup.py --command-packages=stdeb.command bdist_deb |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 38 | #fpm -s python -t deb build/setup.py |
| 39 | |
| 40 | snappackage: |
| 41 | echo "Nothing to be done yet" |
| 42 | |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame^] | 43 | sync: |
| 44 | #cp build/dist/* /root/artifacts/... |
| 45 | |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 46 | test: |
| 47 | ./test/basictest.sh --force --insert-bashrc --install-openvim --init-openvim |
| 48 | |
| garciadeblas | 9453a8a | 2017-03-09 16:21:24 +0100 | [diff] [blame] | 49 | clean: |
| 50 | rm -rf build |
| 51 | #find build -name '*.pyc' -delete |
| 52 | #find build -name '*.pyo' -delete |
| 53 | |