Bring coats under OpenStack infrastructure
- gerrit config - zuul jobs - updated URLs Change-Id: Id183dba3ba13c1e89b97de7ac167fa73de7b9758
This commit is contained in:
parent
1838510f47
commit
358ec92493
1
.gitignore
vendored
1
.gitignore
vendored
@ -61,3 +61,4 @@ node_modules
|
|||||||
# Generated
|
# Generated
|
||||||
ChangeLog
|
ChangeLog
|
||||||
AUTHORS
|
AUTHORS
|
||||||
|
.rtox.cfg
|
||||||
|
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=openstack/coats.git
|
15
.zuul.yaml
Normal file
15
.zuul.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
- 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:
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- openstack-tox-linters-npm
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- openstack-tox-linters-npm
|
10
README.md
10
README.md
@ -1,7 +1,5 @@
|
|||||||
# coats
|
# 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
|
Collection of scripts (coats) that improve open-stack developer browsing experience
|
||||||
|
|
||||||
FoxReplace.json is text replacements configuration for
|
FoxReplace.json is text replacements configuration for
|
||||||
@ -10,8 +8,12 @@ some extra coloring on build logs, making them easier to read. We plan to
|
|||||||
convert this into a greasemonkey helper in the future to allow use from
|
convert this into a greasemonkey helper in the future to allow use from
|
||||||
multiple browsers.
|
multiple browsers.
|
||||||
|
|
||||||
![foxreplace-os-logs](https://s3.sbarnea.com/ss/181001-Mozilla_Firefox_.png)
|
![foxreplace-os-logs](https://raw.githubusercontent.com/openstack/coats/master/doc/source/_static/img/coats-log-highlight-example.png)
|
||||||
|
|
||||||
After you install Firefox extension you can either do an one-time import
|
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.
|
or configure it to re-download it when it changes.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Before you raise a CR, please run "tox" to perform a sanity check.
|
||||||
|
7
bindep.txt
Normal file
7
bindep.txt
Normal file
@ -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]
|
@ -2,8 +2,6 @@
|
|||||||
"version": "0.1",
|
"version": "0.1",
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"words": [
|
"words": [
|
||||||
"Sbarnea",
|
|
||||||
"Sorin",
|
|
||||||
"TOXENV",
|
"TOXENV",
|
||||||
"atexit",
|
"atexit",
|
||||||
"bdist",
|
"bdist",
|
||||||
@ -12,6 +10,7 @@
|
|||||||
"envars",
|
"envars",
|
||||||
"envlist",
|
"envlist",
|
||||||
"envs",
|
"envs",
|
||||||
|
"gerrit",
|
||||||
"htmlcov",
|
"htmlcov",
|
||||||
"ifeq",
|
"ifeq",
|
||||||
"ifndef",
|
"ifndef",
|
||||||
@ -24,6 +23,7 @@
|
|||||||
"pytest",
|
"pytest",
|
||||||
"repo",
|
"repo",
|
||||||
"repos",
|
"repos",
|
||||||
|
"rtox",
|
||||||
"sdist",
|
"sdist",
|
||||||
"setenv",
|
"setenv",
|
||||||
"symlink",
|
"symlink",
|
||||||
@ -52,7 +52,8 @@
|
|||||||
"ignorePaths": [
|
"ignorePaths": [
|
||||||
"docs/build",
|
"docs/build",
|
||||||
".tox",
|
".tox",
|
||||||
".eggs"
|
".eggs",
|
||||||
|
"package-lock.json"
|
||||||
],
|
],
|
||||||
"ignoreWords": [
|
"ignoreWords": [
|
||||||
"I18NSPHINXOPTS"
|
"I18NSPHINXOPTS"
|
||||||
|
BIN
doc/source/_static/img/coats-log-highlight-example.png
Normal file
BIN
doc/source/_static/img/coats-log-highlight-example.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 287 KiB |
18
package.json
18
package.json
@ -7,11 +7,14 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"spell": "npm -s run spell-files && npm -s run spell-commit",
|
"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-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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ssbarnea/coats.git"
|
"url": "https://github.com/openstack/coats.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"openstack",
|
"openstack",
|
||||||
@ -22,14 +25,13 @@
|
|||||||
"zuul",
|
"zuul",
|
||||||
"logs"
|
"logs"
|
||||||
],
|
],
|
||||||
"author": "Sorin Sbarnea",
|
"author": "OpenStack",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/ssbarnea/coats/issues"
|
"url": "https://storyboard.openstack.org/#!/project/openstack/coats"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/ssbarnea/coats#readme",
|
"homepage": "https://github.com/openstack/coats#readme",
|
||||||
"dependencies": {
|
"devDependencies": {
|
||||||
"cspell": "^2.1.12",
|
"cspell": "^2.1.12"
|
||||||
"npm": "^6.1.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
setup.cfg
10
setup.cfg
@ -1,13 +1,13 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = coats
|
name = coats
|
||||||
author = Sorin Sbarnea
|
author = OpenStack
|
||||||
author-email = sorin.sbarnea@gmail.com
|
author-email = openstack-dev@lists.openstack.org
|
||||||
maintainer = Sorin Sbarnea
|
maintainer = OpenStack
|
||||||
maintainer-email = sorin.sbarnea@gmail.com
|
maintainer-email = openstack-dev@lists.openstack.org
|
||||||
summary = Collection of scripts (coats) that improve open-stack developer browsing experience
|
summary = Collection of scripts (coats) that improve open-stack developer browsing experience
|
||||||
description-file =
|
description-file =
|
||||||
README.md
|
README.md
|
||||||
home-page = https://github.com/ssbarnea/coats
|
home-page = https://github.com/openstack/coats
|
||||||
requires-python = >=2.7
|
requires-python = >=2.7
|
||||||
|
|
||||||
license = BSD
|
license = BSD
|
||||||
|
7
tox.ini
7
tox.ini
@ -21,16 +21,21 @@ passenv =
|
|||||||
envars =
|
envars =
|
||||||
PIP_DISABLE_PIP_VERSION_CHECK=1
|
PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||||
PIP_USER=no
|
PIP_USER=no
|
||||||
|
PATH={toxinidir}/node_modules/.bin:{env:PATH}
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
bash
|
bash
|
||||||
echo
|
echo
|
||||||
find
|
find
|
||||||
grep
|
grep
|
||||||
|
node
|
||||||
|
npm
|
||||||
rm
|
rm
|
||||||
|
which
|
||||||
xargs
|
xargs
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
commands=
|
commands=
|
||||||
pip install -q -r requirements.txt -r test-requirements.txt
|
pip install -q -r requirements.txt -r test-requirements.txt
|
||||||
bash -c "npm install && npm run spell"
|
|
||||||
python -m pre_commit run --all
|
python -m pre_commit run --all
|
||||||
|
npm install -y
|
||||||
|
npm run spell
|
||||||
|
Loading…
Reference in New Issue
Block a user