From 205f3d58322fd0674676525fe5e30c9d6fe8fa7e Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Wed, 20 Jun 2018 13:38:18 -0700 Subject: [PATCH] Setup repo administrative files Change-Id: I800b5373eeaf6a317e0c84eba39135d694d87167 Signed-off-by: Andrew Grimberg --- .coafile | 34 ++++++++++++++++++++++++++++++++++ .gitignore | 11 +++++++++++ .gitreview | 5 +++++ .yamllint.conf | 7 +++++++ README.md | 3 +++ tox.ini | 16 ++++++++++++++++ 6 files changed, 76 insertions(+) create mode 100644 .coafile create mode 100644 .gitignore create mode 100644 .gitreview create mode 100644 .yamllint.conf create mode 100644 README.md create mode 100644 tox.ini diff --git a/.coafile b/.coafile new file mode 100644 index 0000000..f0abad4 --- /dev/null +++ b/.coafile @@ -0,0 +1,34 @@ +[Documentation] +bears = WriteGoodLintBear +files = *.md +allow_so_beginning = False +allow_there_is = False +allow_cliche_phrases = False + +[GitCommit] +bears = GitCommitBear +ignore_length_regex = Signed-off-by, + Also-by, + Co-authored-by, + http://, + https:// + +[JSON] +bears = JSONFormatBear +files = packer/**.json +indent_size = 2 + +[ShellCheck] +bears = ShellCheckBear, + SpaceConsistencyBear +files = jjb/**.sh, + packer/**.sh +shell = bash +indent_size = 4 +use_spaces = yeah + +[YAML] +bears = YAMLLintBear +files = jjb/**/*.yaml +document_start = True +yamllint_config = .yamllint.conf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c22c00a --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.tox/ +archives/ +jenkins.ini + +# Packer +.galaxy/ +*.retry +cloud-env.json + +# Maven +target/ diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..1046841 --- /dev/null +++ b/.gitreview @@ -0,0 +1,5 @@ +[gerrit] +host=gerrit.akraino.org +port=29418 +project=ci-management.git +defaultbranch=master diff --git a/.yamllint.conf b/.yamllint.conf new file mode 100644 index 0000000..b821cb8 --- /dev/null +++ b/.yamllint.conf @@ -0,0 +1,7 @@ +extends: default + +rules: + empty-lines: + max-end: 1 + line-length: + max: 120 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c7289fc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ci-management + +This repo contains configuration files for Jenkins jobs for the Akraino project. diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..e33d587 --- /dev/null +++ b/tox.ini @@ -0,0 +1,16 @@ +[tox] +minversion = 1.6 +envlist = coala +skipsdist = true + +[testenv:coala] +basepython = python3 +deps = + coala==0.11 + coala-bears==0.11 + nodeenv~=1.3.0 +commands = + nodeenv -p + npm install --global write-good + python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger + coala --non-interactive -- 2.16.6