Bring coats under OpenStack infrastructure
- gerrit config - zuul jobs - updated URLs Change-Id: Id183dba3ba13c1e89b97de7ac167fa73de7b9758
This commit is contained in:
parent
1838510f47
commit
4c6f8386f0
|
@ -61,3 +61,4 @@ node_modules
|
|||
# Generated
|
||||
ChangeLog
|
||||
AUTHORS
|
||||
.rtox.cfg
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=openstack/coats.git
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- job:
|
||||
name: openstack-tox-linters-npm
|
||||
parent: openstack-tox-linters
|
||||
# bionic needed for less ancient nodejs/npm which would fail to install
|
||||
# cspell regardless engines mentioned in package.json
|
||||
nodeset: ubuntu-bionic
|
||||
|
||||
- project:
|
||||
templates:
|
||||
- nodejs4-jobs
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-linters-npm
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-linters-npm
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
# coats
|
||||
|
||||
[![Build Status](https://travis-ci.org/ssbarnea/coats.svg?branch=master)](https://travis-ci.org/ssbarnea/coats)
|
||||
|
||||
Collection of scripts (coats) that improve open-stack developer browsing experience
|
||||
|
||||
FoxReplace.json is text replacements configuration for
|
||||
|
@ -13,5 +11,10 @@ multiple browsers.
|
|||
![foxreplace-os-logs](https://s3.sbarnea.com/ss/181001-Mozilla_Firefox_.png)
|
||||
|
||||
After you install Firefox extension you can either do an one-time import
|
||||
of the configuration from <https://raw.githubusercontent.com/ssbarnea/coats/master/coats/FoxReplace.json>
|
||||
of the configuration from <https://raw.githubusercontent.com/openstack/coats/master/coats/FoxReplace.json>
|
||||
or configure it to re-download it when it changes.
|
||||
|
||||
## Contributing
|
||||
|
||||
Before you raise a CR, please run "tox" locally to do a minimal set of
|
||||
linting and hopefully more in the future.
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# This is a cross-platform list tracking distribution packages needed by tests;
|
||||
# see http://docs.openstack.org/infra/bindep/ for additional information.
|
||||
|
||||
nodejs [test]
|
||||
nodejs-legacy [platform:ubuntu-xenial test]
|
||||
nodejs-npm [platform:apk test]
|
||||
npm [test]
|
|
@ -12,6 +12,7 @@
|
|||
"envars",
|
||||
"envlist",
|
||||
"envs",
|
||||
"gerrit",
|
||||
"htmlcov",
|
||||
"ifeq",
|
||||
"ifndef",
|
||||
|
@ -24,6 +25,7 @@
|
|||
"pytest",
|
||||
"repo",
|
||||
"repos",
|
||||
"rtox",
|
||||
"sdist",
|
||||
"setenv",
|
||||
"symlink",
|
||||
|
@ -52,7 +54,8 @@
|
|||
"ignorePaths": [
|
||||
"docs/build",
|
||||
".tox",
|
||||
".eggs"
|
||||
".eggs",
|
||||
"package-lock.json"
|
||||
],
|
||||
"ignoreWords": [
|
||||
"I18NSPHINXOPTS"
|
||||
|
|
16
package.json
16
package.json
|
@ -7,11 +7,14 @@
|
|||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"spell": "npm -s run spell-files && npm -s run spell-commit",
|
||||
"spell-commit": "git log -1 --pretty=%B > .git/commit.msg && cspell .git/commit.msg",
|
||||
"spell-files": "git ls-files | xargs cspell --unique"
|
||||
"spell-files": "git ls-files | xargs cspell --unique",
|
||||
"//": "tox linter will also call npm spell-(commit) at the end",
|
||||
"lint": "tox -e linters",
|
||||
"prod": "gulp prod; python setup.py sdist"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ssbarnea/coats.git"
|
||||
"url": "https://github.com/openstack/coats.git"
|
||||
},
|
||||
"keywords": [
|
||||
"openstack",
|
||||
|
@ -25,11 +28,10 @@
|
|||
"author": "Sorin Sbarnea",
|
||||
"license": "Apache-2.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ssbarnea/coats/issues"
|
||||
"url": "https://storyboard.openstack.org/#!/project/openstack/coats"
|
||||
},
|
||||
"homepage": "https://github.com/ssbarnea/coats#readme",
|
||||
"dependencies": {
|
||||
"cspell": "^2.1.12",
|
||||
"npm": "^6.1.0"
|
||||
"homepage": "https://github.com/openstack/coats#readme",
|
||||
"devDependencies": {
|
||||
"cspell": "^2.1.12"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ maintainer-email = sorin.sbarnea@gmail.com
|
|||
summary = Collection of scripts (coats) that improve open-stack developer browsing experience
|
||||
description-file =
|
||||
README.md
|
||||
home-page = https://github.com/ssbarnea/coats
|
||||
home-page = https://github.com/openstack/coats
|
||||
requires-python = >=2.7
|
||||
|
||||
license = BSD
|
||||
|
|
7
tox.ini
7
tox.ini
|
@ -21,16 +21,21 @@ passenv =
|
|||
envars =
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||
PIP_USER=no
|
||||
PATH={toxinidir}/node_modules/.bin:{env:PATH}
|
||||
whitelist_externals =
|
||||
bash
|
||||
echo
|
||||
find
|
||||
grep
|
||||
node
|
||||
npm
|
||||
rm
|
||||
which
|
||||
xargs
|
||||
|
||||
[testenv:linters]
|
||||
commands=
|
||||
pip install -q -r requirements.txt -r test-requirements.txt
|
||||
bash -c "npm install && npm run spell"
|
||||
python -m pre_commit run --all
|
||||
npm install -y
|
||||
npm run spell
|
||||
|
|
Loading…
Reference in New Issue