
[Changes in zuul configurations] - playbooks/checkbuild/pre.yaml calls ensure-nodejs role, but the default nodejs version defined in ensure-nodejs role is still 6. nodejs6 repo is no longer available. This is the cause of the job failure. Let's specify nodejs_version used in horizon by default. - Ensure to install tox globally in the system. tox -e checkbuild calls "tox" as the test commands, so it needs to be installed globally. - Specify "python_version" so that zuul ensures to install a required version of python interpreter. [Changes in cookiecutter template] - hacking version in test-requirements.txt was too old. It is updated to use more recent version which horizon uses. - Update python version to 3.9 in tox.ini. - Install horizon and its dependencies separately. The constraints file contains horizon, so installing horizon along with the constraints file results in a version conflict error. Change-Id: If4bae3fde1f29eeb1d4d43942acc21ff2ef19482
35 lines
1.3 KiB
JSON
35 lines
1.3 KiB
JSON
{
|
|
"name": "{{ cookiecutter.repo_name }}",
|
|
"description": "{{ cookiecutter.call_by_name }} JavaScript tests",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://opendev.org/openstack/{{ cookiecutter.repo_name }}"
|
|
},
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"license": "Apache 2.0",
|
|
"author": "Openstack <openstack-discuss@lists.openstack.org>",
|
|
"devDependencies": {
|
|
"eslint": "3.19.x",
|
|
"eslint-config-openstack": "^4.0.1",
|
|
"eslint-plugin-angular": "3.1.x",
|
|
"jasmine-core": "2.8.x",
|
|
"karma": "1.7.x",
|
|
"karma-chrome-launcher": "^2.2.0",
|
|
"karma-cli": "1.0.x",
|
|
"karma-coverage": "1.1.x",
|
|
"karma-jasmine": "1.1.x",
|
|
"karma-ng-html2js-preprocessor": "1.0.x",
|
|
"karma-phantomjs-launcher": "1.0.x",
|
|
"karma-threshold-reporter": "0.1.x",
|
|
"phantomjs-prebuilt": "2.1.x"
|
|
},
|
|
"dependencies": {},
|
|
"scripts": {
|
|
"postinstall": "if [ ! -d .tox ] || [ ! -d .tox/karma ]; then tox -ekarma --notest; .tox/karma/bin/pip install -chttps://releases.openstack.org/constraints/upper/master -r../horizon/requirements.txt -r../horizon/test-requirements.txt; .tox/karma/bin/pip install ../horizon; fi",
|
|
"lint": "eslint --no-color {{ cookiecutter.module_name }}/static",
|
|
"lintq": "eslint --quiet {{ cookiecutter.module_name }}/static",
|
|
"test": "karma start {{ cookiecutter.module_name }}/karma.conf.js --single-run"
|
|
}
|
|
}
|