[DNM] Test ui-cookiecutter CI

Change-Id: Ia8ce252bf7ad6e5fb5cb92214c7d91d99d9ca8f8
This commit is contained in:
manchandavishal 2022-11-29 14:01:19 +05:30
parent 8390e9d6d2
commit 45e578a5cf
3 changed files with 39 additions and 2 deletions

View File

@ -1,6 +1,7 @@
- job:
name: ui-cookiecutter-tox-checkbuild
parent: tox
nodeset: debian-bullseye
pre-run: playbooks/checkbuild/pre.yaml
post-run: playbooks/checkbuild/post.yaml
vars:
@ -8,9 +9,9 @@
ensure_global_symlinks: true
# node_version should match the default nodejs version
# used in horizon nodejs jobs.
node_version: 14
node_version: 18
# It should match the python version in tox.ini in the template
python_version: 3.9
python_version: "3.9"
- project:
check:
jobs:

34
package.json Normal file
View File

@ -0,0 +1,34 @@
{
"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"
}
}

View File

@ -4,3 +4,5 @@
- ensure-yarn
- ensure-javascript-packages
- nodejs-test-dependencies
- ensure-python
- fetch-tox-output