diff --git a/.coafile b/.coafile new file mode 100644 index 00000000..707c5753 --- /dev/null +++ b/.coafile @@ -0,0 +1,30 @@ +[GitCommit] +bears = GitCommitBear +ignore_length_regex = Signed-off-by, + Also-by, + Co-authored-by, + http://, + https:// + +[JSON] +bears = JSONFormatBear +files = **/*.json +ignore = .*/** +indent_size = 2 + +[YAML] +bears = YAMLLintBear +files = jjb/**/*.yaml,openstack-hot/**/*.yaml +document_start = True +yamllint_config = yamllint.conf + +[ShellCheck] +bears = ShellCheckBear,SpaceConsistencyBear +files = jenkins-scripts/**/*.sh, + jjb/**/*.sh, + scripts/**/*.sh +ignore = jenkins-scripts/*-local-env.sh, + jjb/global-jjb/shell/*.sh, +shell = bash +indent_size = 4 +use_spaces = yeah diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..5eb4e678 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space + +[*.json] +indent_size = 2 + +[*.rst] +indent_size = 4 + +[*.markdown] +indent_size = 4 +max_line_length = 80 + +[*.sh] +indent_size = 4 +max_line_length = 80 + +[*.yaml] +indent_size = 4 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..53704da6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Ignore Vim temporary files +.*.sw? + +# Ignore changes to the JJB Configuration File +jenkins.ini + +# Ignore Sandbox temporary files +jjb/*/releng-*.yaml + +# Maven +target/ + +# Vagrant +.vagrant + +# IntelliJ +.idea/ +*.iml + +# Eclipse +.project + +# Python +.tox/ +__pycache__/ +*.pyc diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..0f6b73e5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "jjb/global-jjb"] + path = jjb/global-jjb + url = https://gerrit.linuxfoundation.org/infra/releng/global-jjb diff --git a/jenkins.ini.example b/jenkins.ini.example new file mode 100644 index 00000000..648dc444 --- /dev/null +++ b/jenkins.ini.example @@ -0,0 +1,11 @@ +[job_builder] +ignore_cache=True +keep_descriptions=False +include_path=. +recursive=True + +[jenkins] +user=#LFID# +password=#api_token# +url=https://jenkins.edgexfoundry.org/sandbox +query_plugins_info=False diff --git a/jjb/ci-management/ci-management.yaml b/jjb/ci-management/ci-management.yaml new file mode 100644 index 00000000..04b953e3 --- /dev/null +++ b/jjb/ci-management/ci-management.yaml @@ -0,0 +1,10 @@ +--- +- project: + name: ci-management-jobs + project: 'ci-management' + jobs: + - '{project-name}-github-ci-jobs' + + project: ci-management + project-name: ci-management + build-node: centos7-basebuild-2c-1g diff --git a/jjb/defaults.yaml b/jjb/defaults.yaml new file mode 100644 index 00000000..078ac35c --- /dev/null +++ b/jjb/defaults.yaml @@ -0,0 +1,23 @@ +--- +# GLOBAL jenkins defaults + +- defaults: + name: global + + # lf-infra-defaults + jenkins-ssh-credential: 'edgex-jenkins-ssh' + + # build discards + build-days-to-keep: 30 + + # Timeout in minutes + build-timeout: 360 + build-node: centos7-basebuild-2c-1g + + archive-artifacts: '' + + # Set default maven version used for everything + maven-version: 'mvn33' + + # GitHub configuration + github-org: edgexfoundry diff --git a/jjb/global-jjb b/jjb/global-jjb new file mode 160000 index 00000000..9664b6bb --- /dev/null +++ b/jjb/global-jjb @@ -0,0 +1 @@ +Subproject commit 9664b6bbc080b5b9132a742e0ef2a793726bae9b diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..dbeedd8b --- /dev/null +++ b/tox.ini @@ -0,0 +1,21 @@ +[tox] +minversion = 1.6 +envlist = coala,docs,pep8 +skipsdist = true + +[testenv:coala] +basepython = python3 +deps = + coala + coala-bears +commands = + python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger + coala --non-interactive + +# [testenv:docs] +# deps = sphinx +# commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + +[testenv:pep8] +deps = flake8 +commands = flake8 scripts/ diff --git a/yamllint.conf b/yamllint.conf new file mode 100644 index 00000000..32d76ab6 --- /dev/null +++ b/yamllint.conf @@ -0,0 +1,8 @@ +extends: default + +rules: + empty-lines: + max-end: 1 + line-length: + max: 120 +