Fix postinstall for npm job

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

Change-Id: Ib82a7461949e42eef5f155b13e7efbd7f65139f5
This commit is contained in:
Shu Muto 2018-05-30 17:12:08 +09:00
parent 45b4e665e0
commit d60bad7594
1 changed files with 1 additions and 1 deletions

View File

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