Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.py
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | def create_build_steps(self, artifact_dir): | ||||
# - By defining a script to run. If such a script is set and is | # - By defining a script to run. If such a script is set and is | ||||
# executable, it is the only thing to run. | # executable, it is the only thing to run. | ||||
# - By defining the configuration options and a list of target groups to | # - By defining the configuration options and a list of target groups to | ||||
# run. The configuration step should be run once then all the targets | # run. The configuration step should be run once then all the targets | ||||
# groups. Each target group can contain 1 or more targets which | # groups. Each target group can contain 1 or more targets which | ||||
# should be run parallel. | # should be run parallel. | ||||
script = self.config.get("script", None) | script = self.config.get("script", None) | ||||
if script: | if script: | ||||
script_path = Path(self.script_root.joinpath(script)) | script_path = Path(self.project_root.joinpath(script)) | ||||
if not script_path.is_file() or not os.access(script_path, os.X_OK): | if not script_path.is_file() or not os.access(script_path, os.X_OK): | ||||
raise FileNotFoundError( | raise FileNotFoundError( | ||||
"The script file {} does not exist or does not have execution permission".format( | "The script file {} does not exist or does not have execution permission".format( | ||||
str(script_path) | str(script_path) | ||||
) | ) | ||||
) | ) | ||||
self.build_steps = [ | self.build_steps = [ | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 411 Lines • Show Last 20 Lines |