Fix postinstall for npm job

npm jobs uses python3.5, but pip uses python2.7 to install horizon.
This fixes this issue.

Change-Id: Idc5df31d20def2d29cb1502e5d88946e1be6ae36
This commit is contained in:
Shu Muto 2018-05-30 17:42:43 +09:00
parent 34aa9d7ef3
commit 33b1bae56a

View File

@ -21,7 +21,7 @@
"phantomjs-prebuilt": "2.1.x" "phantomjs-prebuilt": "2.1.x"
}, },
"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",
"test": "karma start zun_ui/karma.conf.js --single-run", "test": "karma start zun_ui/karma.conf.js --single-run",
"lint": "eslint --no-color zun_ui/static", "lint": "eslint --no-color zun_ui/static",
"lintq": "eslint --quiet zun_ui/static" "lintq": "eslint --quiet zun_ui/static"