Skip to content

Commit

Permalink
Create sample layout for library
Browse files Browse the repository at this point in the history
This patch creates directory layout.
This layout is not final and will be changed in future
  • Loading branch information
akaRem committed May 4, 2017
1 parent 034876d commit 3bb0c6d
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.pyc
output/
*.ini
!tox.ini
.tox
.idea
.venv
venv
14 changes: 14 additions & 0 deletions conf/jenkins_job.ini.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[jenkins]
user=my_username
password=my_secret_password
url=https://my.jenkins.com/
query_plugins_info=False

[job_builder]
ignore_cache=True
keep_descriptions=False
recursive=True
include_path=.:scripts

[__future__]
param_order_from_yaml=false
2 changes: 2 additions & 0 deletions conf/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jenkins-job-builder==1.6.1
git+https://github.com/bookwar/jenkins-job-builder-stash-pr
Empty file added library/macros/.gitkeep
Empty file.
Empty file added library/scripts/.gitkeep
Empty file.
Empty file added library/templates/.gitkeep
Empty file.
Empty file.
25 changes: 25 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = example,pep8

[testenv]
basepython = python2
deps = -r{toxinidir}/conf/requirements.txt
usedevelop = False
commands =
jenkins-jobs --conf conf/jenkins_job.ini.example test reference/servers/{envname}:library -o {toxinidir}/output/{envname}

[testenv:example]
commands =
jenkins-jobs --conf conf/jenkins_job.ini.example test reference/servers/{envname}:library -o {toxinidir}/output/{envname}

[testenv:pep8]
deps = flake8
commands = flake8

[flake8]
exclude = .git,.tox,.venv,venv
show-pep8 = True
show-source = True
count = True

0 comments on commit 3bb0c6d

Please sign in to comment.