Fix postinstall for npm job
npm jobs uses python3.5, but pip uses python2.7 to install horizon. This fixes this issue. Change-Id: I51c9177ec1cb92d8cb00db4ea66cd61e69c98ef2
This commit is contained in:
parent
d858585eb9
commit
191f889748
|
@ -26,7 +26,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "if [ ! -d .tox ] || [ ! -d .tox/karma ]; then tox -ekarma --notest; pip install -U -t ./.tox/karma/lib/python3.5/site-packages/ ../horizon; fi",
|
"postinstall": "if [ ! -d .tox ] || [ ! -d .tox/karma ]; then tox -ekarma --notest; python3.5 -m pip install -U -t ./.tox/karma/lib/python3.5/site-packages/ ../horizon; fi",
|
||||||
"lint": "eslint --no-color magnum_ui/static",
|
"lint": "eslint --no-color magnum_ui/static",
|
||||||
"lintq": "eslint --quiet magnum_ui/static",
|
"lintq": "eslint --quiet magnum_ui/static",
|
||||||
"test": "karma start magnum_ui/karma.conf.js --single-run"
|
"test": "karma start magnum_ui/karma.conf.js --single-run"
|
||||||
|
|
Loading…
Reference in New Issue