python
Submodule ¶
Structs ¶
PagesPdoc3Props ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
module |
string |
The Python module name. |
jobName |
string |
The name of the job. |
jobStage |
string |
The stage of the job. |
outputPath |
string |
A sub path of the Gitlab Pages public directory to output generated HTML/markdown files to. |
module
Required ¶
- Type: string
The Python module name.
This may be an import path resolvable in the current environment, or a file path to a Python module or package.
jobName
Optional ¶
- Type: string
The name of the job.
jobStage
Optional ¶
- Type: string
The stage of the job.
outputPath
Optional ¶
- Type: string
A sub path of the Gitlab Pages public
directory to output generated HTML/markdown files to.
Defaults to "/".
PagesSphinxProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobName |
string |
The name of the job. |
jobStage |
string |
The stage of the job. |
pip |
PipInstallRequirementsProps |
No description. |
jobName
Optional ¶
- Type: string
The name of the job.
jobStage
Optional ¶
- Type: string
The stage of the job.
pip
Optional ¶
PipInstallRequirementsProps ¶
Represents the properties for the pipInstallRequirements
static method.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
pipenvVersionSpecifier |
string |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to an empty string, indicating installation of the latest version. |
requirementsFile |
string |
The location and name of the requirements file. |
pipenvVersionSpecifier
Optional ¶
- Type: string
- Default: ""
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to an empty string, indicating installation of the latest version.
requirementsFile
Optional ¶
- Type: string
- Default: "requirements.txt"
The location and name of the requirements file.
PythonBuildBdistWheelProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobName |
string |
No description. |
jobStage |
string |
No description. |
pipRequirements |
PipInstallRequirementsProps |
No description. |
jobName
Optional ¶
- Type: string
jobStage
Optional ¶
- Type: string
pipRequirements
Optional ¶
PythonDeployTwineUploadProps ¶
Represents the properties for the TwineUpload
class.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobName |
string |
The name of the job. |
jobStage |
string |
The stage of the job. |
twinePasswordEnvVar |
string |
The name of the environment variable containing the password. |
twineRepositoryUrl |
string |
The URL to the PyPI repository to which the Python artifacts will be deployed. |
twineUsernameEnvVar |
string |
The name of the environment variable containing the username value. |
jobName
Optional ¶
- Type: string
The name of the job.
jobStage
Optional ¶
- Type: string
The stage of the job.
twinePasswordEnvVar
Optional ¶
- Type: string
The name of the environment variable containing the password.
DO NOT PROVIDE THE LOGIN VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_PASSWORD'.
twineRepositoryUrl
Optional ¶
- Type: string
The URL to the PyPI repository to which the Python artifacts will be deployed.
If undefined
the package is published to https://pypi.org
.
twineUsernameEnvVar
Optional ¶
- Type: string
The name of the environment variable containing the username value.
DO NOT PROVIDE THE USERNAME VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_USERNAME'.
PythonFullStackProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
twineProdJobProps |
PythonDeployTwineUploadProps |
No description. |
bDistWheelJobProps |
PythonBuildBdistWheelProps |
No description. |
evaluateGitTagPep440ConformityJobProps |
PythonTestEvaluateGitTagPep440ConformityProps |
No description. |
flake8JobProps |
PythonLintFlake8Props |
No description. |
isortJobProps |
PythonLintIsortProps |
No description. |
mypyJobProps |
PythonLintMyPyProps |
No description. |
pytestJobProps |
PythonTestPytestProps |
No description. |
sphinxPropsJobProps |
PagesSphinxProps |
No description. |
twineDevJobProps |
PythonDeployTwineUploadProps |
No description. |
twineProdJobProps
Required ¶
bDistWheelJobProps
Optional ¶
evaluateGitTagPep440ConformityJobProps
Optional ¶
flake8JobProps
Optional ¶
- Type: PythonLintFlake8Props
isortJobProps
Optional ¶
- Type: PythonLintIsortProps
mypyJobProps
Optional ¶
- Type: PythonLintMyPyProps
pytestJobProps
Optional ¶
- Type: PythonTestPytestProps
sphinxPropsJobProps
Optional ¶
- Type: PagesSphinxProps
twineDevJobProps
Optional ¶
PythonLintFlake8Props ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobName |
string |
The name of the job. |
jobStage |
string |
The stage of the job. |
jobName
Optional ¶
- Type: string
The name of the job.
jobStage
Optional ¶
- Type: string
The stage of the job.
PythonLintIsortProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobName |
string |
The name of the job. |
jobStage |
string |
The stage of the job. |
jobName
Optional ¶
- Type: string
The name of the job.
jobStage
Optional ¶
- Type: string
The stage of the job.
PythonLintMyPyProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
packageDir |
string |
Package directory to type check. |
jobName |
string |
The name of the job. |
jobStage |
string |
The stage of the job. |
myPyOptions |
string |
Adds arguments to mypy execution. |
myPyVersion |
string |
If mypy is not already installed, this version will be installed. |
packageDir
Required ¶
- Type: string
Package directory to type check.
jobName
Optional ¶
- Type: string
The name of the job.
jobStage
Optional ¶
- Type: string
The stage of the job.
myPyOptions
Optional ¶
- Type: string
Adds arguments to mypy execution.
myPyVersion
Optional ¶
- Type: string
If mypy
is not already installed, this version will be installed.
Installs latest version if undefined
.
PythonTestEvaluateGitTagPep440ConformityProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobName |
string |
The name of the Bootstrap job. |
jobStage |
string |
The stage of the Bootstrap job. |
jobName
Optional ¶
- Type: string
The name of the Bootstrap job.
jobStage
Optional ¶
- Type: string
The stage of the Bootstrap job.
PythonTestPytestProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobName |
string |
The name of the Bootstrap job. |
jobStage |
string |
The stage of the Bootstrap job. |
pipenvVersionSpecifier |
string |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to latest package version. |
pytestCommand |
string |
This argument is only required if you have a custom command to call pytest. |
jobName
Optional ¶
- Type: string
The name of the Bootstrap job.
jobStage
Optional ¶
- Type: string
The stage of the Bootstrap job.
pipenvVersionSpecifier
Optional ¶
- Type: string
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to latest package version.
pytestCommand
Optional ¶
- Type: string
This argument is only required if you have a custom command to call pytest.
Classes ¶
PagesPdoc3 ¶
- Implements: IPagesPdoc3
Generate a HTML API documentation of you python code as Gitlab Pages.
Runs pdoc3 --html -f --skip-errors --output-dir public{path} {module}
and stores the output
as artifact under the public
directory.
This subclass of Job
will configure following defaults for the superclass:
- name: pdoc3-pages
- stage: build
- artifacts: Path 'public'
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PagesPdoc3Props |
No description. |
props
Required ¶
- Type: PagesPdoc3Props
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
module |
string |
The Python module name. |
outputPath |
string |
A sub path of the Gitlab Pages public directory to output generated HTML/markdown files to. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
module
Required ¶
- Type: string
The Python module name.
This may be an import path resolvable in the current environment, or a file path to a Python module or package.
outputPath
Required ¶
- Type: string
A sub path of the Gitlab Pages public
directory to output generated HTML/markdown files to.
Defaults to "/".
PagesSphinx ¶
- Implements: IPagesSphinx
Runs sphinx-build -b html -E -a docs public/${CI_COMMIT_REF_NAME}
and installs project requirements. Uses: (PythonScripts.PipInstallRequirements()
).
Requires a docs/requirements.txt
in your project foldercontaining
at least
sphinx- Creates artifacts for Gitlab Pages under
pages`
This subclass of Job
will configure following defaults for the superclass:
- name: sphinx-pages
- stage: build
- artifacts: Path 'public'
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PagesSphinxProps |
No description. |
props
Required ¶
- Type: PagesSphinxProps
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
pip |
PipInstallRequirementsProps |
No description. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
pip
Optional ¶
PythonBuildBdistWheel ¶
- Implements: IPythonBuildBdistWheel
Runs python3 setup.py bdist_wheel
and installs project requirements Requirements are installed by LinuxScripts.pipInstallRequirements()
.
This subclass of Job
configures the following defaults for the superclass:
- name: bdist_wheel
- stage: build
- artifacts: Path 'dist/'
Requires a Pipfile.lock
or requirements.txt
in your project folder
containing at least setuptools
. Creates artifacts under the path 'dist/'.
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonBuildBdistWheelProps |
No description. |
props
Required ¶
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
pipenvVersionSpecifier |
string |
No description. |
requirementsFile |
string |
No description. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
pipenvVersionSpecifier
Optional ¶
- Type: string
requirementsFile
Optional ¶
- Type: string
PythonDeployTwineUpload ¶
- Implements: IPythonDeployTwineUpload
Runs:.
Requires artifacts from a build job under dist/
(e.g. from BdistWheel()
)
This subclass of Job
configures the following defaults for the superclass:
- name: twine
- stage: deploy
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonDeployTwineUploadProps |
No description. |
props
Required ¶
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
twinePasswordEnvVar |
string |
The name of the environment variable containing the password. |
twineUsernameEnvVar |
string |
The name of the environment variable containing the username value. |
twineRepositoryUrl |
string |
The URL to the PyPI repository to which the Python artifacts will be deployed. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
twinePasswordEnvVar
Required ¶
- Type: string
The name of the environment variable containing the password.
DO NOT PROVIDE THE LOGIN VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_PASSWORD'.
twineUsernameEnvVar
Required ¶
- Type: string
The name of the environment variable containing the username value.
DO NOT PROVIDE THE USERNAME VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_USERNAME'.
twineRepositoryUrl
Optional ¶
- Type: string
The URL to the PyPI repository to which the Python artifacts will be deployed.
If undefined
the package is published to https://pypi.org
.
PythonFullStack ¶
- Implements: IPythonFullStack
Returns a sequence containing following jobs: - isort - flake8 - pytest - evaluating CI_COMMIT_TAG as valid PyPI version string (if exists) - bdist_wheel - Gitlab Pages sphinx - twine upload Optional jobs: - mypy The varname_dev_password
and varname_stable_password
arguments are only used to specify the variable name and not the actuall password.
The variable name has to be set outside of the pipeline itself, if you set it within the pipline, that would be a security risk.
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonFullStackProps |
No description. |
props
Required ¶
- Type: PythonFullStackProps
Methods ¶
Name | Description |
---|---|
addChildren |
Add gcix.Job s or other gcix.JobCollection s to this JobCollection. |
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
No description. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
getAllInstanceNames |
Return all instance names from the given child. |
initializeAllowFailure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection that haven't been set the allowFailure before. |
initializeArtifacts |
Sets gcix.Job.artifacts to all jobs within this JobCollection that haven't been set the artifacs before. |
initializeCache |
Calling gcix.Job.assigneCache() to all jobs within this JobCollection that haven't been set the cache before. |
initializeDependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection that haven't been added dependencies before. |
initializeImage |
Calling gcix.Job.assignImage() to all jobs within this JobCollection. |
initializeNeeds |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection that haven't been added needs before. |
initializeRules |
Calling gcix.Job.append_rules() to all jobs within this JobCollection that haven't been added rules before. |
initializeTags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection that haven't been added tags before. |
initializeVariables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection that haven't been added variables before. |
isEqual |
isEqual checks if this object is equal to given object. |
overrideAllowFailure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection overriding any previous set value. |
overrideDependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs. |
overrideImage |
Calling gcix.Job.assignImage() to all jobs within this JobCollection overriding any previous set value. |
overrideNeeds |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs. |
overrideRules |
Calling gcix.Job.overrideRules() to all jobs within this JobCollection and overriding any previously added rules to that jobs. |
overrideTags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection and overriding any previously added tags to that jobs. |
overrideVariables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection and overriding any previously added variables to that jobs. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addChildren
¶
Add gcix.Job
s or other gcix.JobCollection
s to this JobCollection.
Adding a child creates a copy of that child. You should provide a name or stage when adding children, to make them different from other places where they will be used.
props
Required ¶
- Type: @gcix/gcix.AddChildrenProps
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
parent
Required ¶
- Type: @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this JobCollection and all parent JobCollection's.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
initializeAllowFailure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection that haven't been set the allowFailure before.
allowFailure
Required ¶
- Type: boolean | number[]
initializeArtifacts
¶
Sets gcix.Job.artifacts
to all jobs within this JobCollection that haven't been set the artifacs before.
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
initializeCache
¶
Calling gcix.Job.assigneCache()
to all jobs within this JobCollection that haven't been set the cache before.
cache
Required ¶
- Type: @gcix/gcix.Cache
initializeDependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection that haven't been added dependencies before.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts by default.
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
initializeImage
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection.
image
Required ¶
- Type: string | @gcix/gcix.Image
initializeNeeds
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection that haven't been added needs before.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs by default.
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
initializeRules
¶
Calling gcix.Job.append_rules()
to all jobs within this JobCollection that haven't been added rules before.
rules
Required ¶
- Type: @gcix/gcix.Rule[]
initializeTags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection that haven't been added tags before.
tags
Required ¶
- Type: string[]
initializeVariables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection that haven't been added variables before.
variables
Required ¶
- Type: {[ key: string ]: string}
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
overrideAllowFailure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection overriding any previous set value.
allowFailure
Required ¶
- Type: boolean | number[]
overrideDependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts.
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
overrideImage
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection overriding any previous set value.
image
Required ¶
- Type: string | @gcix/gcix.Image
overrideNeeds
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs.
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
overrideRules
¶
Calling gcix.Job.overrideRules()
to all jobs within this JobCollection and overriding any previously added rules to that jobs.
rules
Required ¶
- Type: @gcix/gcix.Rule[]
overrideTags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection and overriding any previously added tags to that jobs.
tags
Required ¶
- Type: string[]
overrideVariables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection and overriding any previously added variables to that jobs.
variables
Required ¶
- Type: {[ key: string ]: string}
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
lastJobsExecuted |
@gcix/gcix.Job[] |
This property returns all Jobs from the last stage of this JobCollection. |
nestedJobs |
@gcix/gcix.Job[] |
No description. |
populatedJobs |
@gcix/gcix.Job[] |
Returns a list with populated copies of all nested jobs of this JobCollection. |
children |
@gcix/gcix.ChildDict[] |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
orderedTagsForInitialization |
@gcix/gcix.OrderedStringSet |
No description. |
orderedTagsForReplacement |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
allowFailureForInitialization |
string | boolean | number[] |
No description. |
allowFailureForReplacement |
string | boolean | number[] |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
artifactsForInitialization |
@gcix/gcix.Artifacts |
No description. |
artifactsForReplacement |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
cacheForInitialization |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
dependenciesForInitialization |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
dependenciesForReplacement |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
imageForInitialization |
string | @gcix/gcix.Image |
No description. |
imageForReplacement |
string | @gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
needsForInitialization |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
needsForReplacement |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
rulesForInitialization |
@gcix/gcix.Rule[] |
No description. |
rulesForReplacement |
@gcix/gcix.Rule[] |
No description. |
rulesToAppend |
@gcix/gcix.Rule[] |
No description. |
rulesToPrepend |
@gcix/gcix.Rule[] |
No description. |
scriptsToAppend |
string[] |
No description. |
scriptsToPrepend |
string[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
variablesForInitialization |
{[ key: string ]: string} |
No description. |
variablesForReplacement |
{[ key: string ]: string} |
No description. |
bDistWheelJob |
PythonBuildBdistWheel |
No description. |
evaluateGitTagPep440ConformityJob |
PythonTestEvaluateGitTagPep440Conformity |
No description. |
flake8Job |
PythonLintFlake8 |
No description. |
isortJob |
PythonLintIsort |
No description. |
pytestJob |
PythonTestPytest |
No description. |
twineProdJob |
PythonDeployTwineUpload |
No description. |
mypyJob |
PythonLintMyPy |
No description. |
sphinxJob |
PagesSphinx |
No description. |
twineDevJob |
PythonDeployTwineUpload |
No description. |
lastJobsExecuted
Required ¶
- Type: @gcix/gcix.Job[]
This property returns all Jobs from the last stage of this JobCollection.
This is typically be requested from a job which has setup this JobCollection as need, to determine all actual jobs of this JobCollection as need.
nestedJobs
Required ¶
- Type: @gcix/gcix.Job[]
populatedJobs
Required ¶
- Type: @gcix/gcix.Job[]
Returns a list with populated copies of all nested jobs of this JobCollection.
Populated means, that all attributes of a Job which depends on its context are resolved to their final values. The context is primarily the JobCollection within the jobs resides but also dependencies to other jobs and JobCollection's. Thus this JobCollection will apply its own configuration, like variables to add, tags to set, etc., to all its jobs and JobCollection's.
Copies means what it says, that the returned job are not the same job objects, originally added to this JobCollection, but copies of them.
Nested means, that also jobs from JobCollection's within this JobCollection, are returned, as well as jobs from JobCollection's within JobCollection's within this JobCollection and so on.
children
Required ¶
- Type: @gcix/gcix.ChildDict[]
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
orderedTagsForInitialization
Required ¶
- Type: @gcix/gcix.OrderedStringSet
orderedTagsForReplacement
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
allowFailureForInitialization
Optional ¶
- Type: string | boolean | number[]
allowFailureForReplacement
Optional ¶
- Type: string | boolean | number[]
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
artifactsForInitialization
Optional ¶
- Type: @gcix/gcix.Artifacts
artifactsForReplacement
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
cacheForInitialization
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
dependenciesForInitialization
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
dependenciesForReplacement
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
imageForInitialization
Optional ¶
- Type: string | @gcix/gcix.Image
imageForReplacement
Optional ¶
- Type: string | @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
needsForInitialization
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
needsForReplacement
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
rulesForInitialization
Optional ¶
- Type: @gcix/gcix.Rule[]
rulesForReplacement
Optional ¶
- Type: @gcix/gcix.Rule[]
rulesToAppend
Optional ¶
- Type: @gcix/gcix.Rule[]
rulesToPrepend
Optional ¶
- Type: @gcix/gcix.Rule[]
scriptsToAppend
Optional ¶
- Type: string[]
scriptsToPrepend
Optional ¶
- Type: string[]
variables
Optional ¶
- Type: {[ key: string ]: string}
variablesForInitialization
Optional ¶
- Type: {[ key: string ]: string}
variablesForReplacement
Optional ¶
- Type: {[ key: string ]: string}
bDistWheelJob
Required ¶
- Type: PythonBuildBdistWheel
evaluateGitTagPep440ConformityJob
Required ¶
flake8Job
Required ¶
- Type: PythonLintFlake8
isortJob
Required ¶
- Type: PythonLintIsort
pytestJob
Required ¶
- Type: PythonTestPytest
twineProdJob
Required ¶
- Type: PythonDeployTwineUpload
mypyJob
Optional ¶
- Type: PythonLintMyPy
sphinxJob
Optional ¶
- Type: PagesSphinx
twineDevJob
Optional ¶
- Type: PythonDeployTwineUpload
PythonLintFlake8 ¶
- Implements: IPythonLintFlake8
Runs:.
This subclass of Job
configures the following defaults for the superclass:
- name: flake8
- stage: lint
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonLintFlake8Props |
No description. |
props
Required ¶
- Type: PythonLintFlake8Props
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
PythonLintIsort ¶
- Implements: IPythonLintIsort
Runs:.
This subclass of Job
will configure following defaults for the superclass:
- name: isort
- stage: lint
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonLintIsortProps |
No description. |
props
Required ¶
- Type: PythonLintIsortProps
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
PythonLintMyPy ¶
- Implements: IPythonLintMyPy
Install mypy if not already installed. Execute mypy for packageDir
.
This subclass of Job
configures the following defaults for the superclass:
- name: mypy
- stage: lint
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonLintMyPyProps |
No description. |
props
Required ¶
- Type: PythonLintMyPyProps
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
packageDir |
string |
Package directory to type check. |
myPyOptions |
string |
Adds arguments to mypy execution. |
myPyVersion |
string |
If mypy is not already installed, this version will be installed. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
packageDir
Required ¶
- Type: string
Package directory to type check.
myPyOptions
Optional ¶
- Type: string
Adds arguments to mypy execution.
myPyVersion
Optional ¶
- Type: string
If mypy
is not already installed, this version will be installed.
Installs latest version if undefined
.
PythonScripts ¶
Represents a collection of utility functions for scripting tasks.
Static Functions ¶
Name | Description |
---|---|
pipInstallRequirements |
Generates a shell command to install project requirements using pipenv and pip based on the presence of a Pipfile.lock or requirements.txt . |
pipInstallRequirements
¶
Generates a shell command to install project requirements using pipenv
and pip
based on the presence of a Pipfile.lock
or requirements.txt
.
props
Required ¶
An object containing the properties for installation.
PythonTestEvaluateGitTagPep440Conformity ¶
- Implements: IPythonTestEvaluateGitTagPep440Conformity
Checks if the current pipelines $CI_COMMIT_TAG
validates to a valid Python package version according to https://www.python.org/dev/peps/pep-0440.
This job already contains a rule to only run when a $CI_COMMIT_TAG
is
present (rules.only_tags()
).
Runs pytest
and installs project requirements before
PythonScripts.pipInstallRequirements
- Requires a
requirements.txt
in your project folder containing at leastpytest
This subclass of Job
will configure following defaults for the superclass:
- name: tag-pep440-conformity
- stage: test
- image: PredefinedImages.GCIP
- rules: on_tagsg
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonTestEvaluateGitTagPep440ConformityProps |
No description. |
props
Required ¶
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
PythonTestPytest ¶
- Implements: IPythonTestPytest
Runs pytest
and installs project requirements before PythonScripts.pipInstallRequirements
.
Requires a Pipfile.lock
or requirements.txt
in your project folder
containing at least pytest
This subclass of Job
will configure following defaults for the superclass:
- name: pytest
- stage: test
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PythonTestPytestProps |
No description. |
props
Required ¶
- Type: PythonTestPytestProps
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
pipenvVersionSpecifier |
string |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to latest package version. |
pytestCommand |
string |
This argument is only required if you have a custom command to call pytest. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
pipenvVersionSpecifier
Required ¶
- Type: string
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to latest package version.
pytestCommand
Required ¶
- Type: string
This argument is only required if you have a custom command to call pytest.
Protocols ¶
IPagesPdoc3 ¶
- Implemented By: PagesPdoc3, IPagesPdoc3
Properties ¶
Name | Type | Description |
---|---|---|
module |
string |
The Python module name. |
outputPath |
string |
A sub path of the Gitlab Pages public directory to output generated HTML/markdown files to. |
module
Required ¶
- Type: string
The Python module name.
This may be an import path resolvable in the current environment, or a file path to a Python module or package.
outputPath
Required ¶
- Type: string
A sub path of the Gitlab Pages public
directory to output generated HTML/markdown files to.
Defaults to "/".
IPagesSphinx ¶
- Implemented By: PagesSphinx, IPagesSphinx
Properties ¶
Name | Type | Description |
---|---|---|
pip |
PipInstallRequirementsProps |
No description. |
pip
Optional ¶
IPythonBuildBdistWheel ¶
- Implemented By: PythonBuildBdistWheel, IPythonBuildBdistWheel
Properties ¶
Name | Type | Description |
---|---|---|
pipenvVersionSpecifier |
string |
No description. |
requirementsFile |
string |
No description. |
pipenvVersionSpecifier
Optional ¶
- Type: string
requirementsFile
Optional ¶
- Type: string
IPythonDeployTwineUpload ¶
- Implemented By: PythonDeployTwineUpload, IPythonDeployTwineUpload
Properties ¶
Name | Type | Description |
---|---|---|
twinePasswordEnvVar |
string |
The name of the environment variable containing the password. |
twineUsernameEnvVar |
string |
The name of the environment variable containing the username value. |
twineRepositoryUrl |
string |
The URL to the PyPI repository to which the Python artifacts will be deployed. |
twinePasswordEnvVar
Required ¶
- Type: string
The name of the environment variable containing the password.
DO NOT PROVIDE THE LOGIN VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_PASSWORD'.
twineUsernameEnvVar
Required ¶
- Type: string
The name of the environment variable containing the username value.
DO NOT PROVIDE THE USERNAME VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_USERNAME'.
twineRepositoryUrl
Optional ¶
- Type: string
The URL to the PyPI repository to which the Python artifacts will be deployed.
If undefined
the package is published to https://pypi.org
.
IPythonFullStack ¶
- Implemented By: PythonFullStack, IPythonFullStack
Properties ¶
Name | Type | Description |
---|---|---|
bDistWheelJob |
PythonBuildBdistWheel |
No description. |
evaluateGitTagPep440ConformityJob |
PythonTestEvaluateGitTagPep440Conformity |
No description. |
flake8Job |
PythonLintFlake8 |
No description. |
isortJob |
PythonLintIsort |
No description. |
pytestJob |
PythonTestPytest |
No description. |
twineProdJob |
PythonDeployTwineUpload |
No description. |
mypyJob |
PythonLintMyPy |
No description. |
sphinxJob |
PagesSphinx |
No description. |
twineDevJob |
PythonDeployTwineUpload |
No description. |
bDistWheelJob
Required ¶
- Type: PythonBuildBdistWheel
evaluateGitTagPep440ConformityJob
Required ¶
flake8Job
Required ¶
- Type: PythonLintFlake8
isortJob
Required ¶
- Type: PythonLintIsort
pytestJob
Required ¶
- Type: PythonTestPytest
twineProdJob
Required ¶
- Type: PythonDeployTwineUpload
mypyJob
Optional ¶
- Type: PythonLintMyPy
sphinxJob
Optional ¶
- Type: PagesSphinx
twineDevJob
Optional ¶
- Type: PythonDeployTwineUpload
IPythonLintFlake8 ¶
- Implemented By: PythonLintFlake8, IPythonLintFlake8
IPythonLintIsort ¶
- Implemented By: PythonLintIsort, IPythonLintIsort
IPythonLintMyPy ¶
- Implemented By: PythonLintMyPy, IPythonLintMyPy
Properties ¶
Name | Type | Description |
---|---|---|
packageDir |
string |
Package directory to type check. |
myPyOptions |
string |
Adds arguments to mypy execution. |
myPyVersion |
string |
If mypy is not already installed, this version will be installed. |
packageDir
Required ¶
- Type: string
Package directory to type check.
myPyOptions
Optional ¶
- Type: string
Adds arguments to mypy execution.
myPyVersion
Optional ¶
- Type: string
If mypy
is not already installed, this version will be installed.
Installs latest version if undefined
.
IPythonTestEvaluateGitTagPep440Conformity ¶
IPythonTestPytest ¶
- Implemented By: PythonTestPytest, IPythonTestPytest
Properties ¶
Name | Type | Description |
---|---|---|
pipenvVersionSpecifier |
string |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to latest package version. |
pytestCommand |
string |
This argument is only required if you have a custom command to call pytest. |
pipenvVersionSpecifier
Required ¶
- Type: string
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to latest package version.
pytestCommand
Required ¶
- Type: string
This argument is only required if you have a custom command to call pytest.