|
54 | 54 |
|
55 | 55 | builder_info = {
|
56 | 56 | 'middleman': {
|
| 57 | + 'build_env': {}, |
57 | 58 | 'build_command': ['bundle', 'exec', 'middleman', 'build', '--verbose'],
|
58 | 59 | 'build_subdir': 'build',
|
59 | 60 | 'deploy_command': ['bundle', 'exec', 'middleman', 'deploy', '--no-build-before']
|
60 | 61 | },
|
61 | 62 | # Duck: we had an incomplete build for Pulp (new post but blog index not updated)
|
62 | 63 | # disabling --incremental mode for now
|
63 | 64 | 'jekyll': {
|
| 65 | + 'build_env': { |
| 66 | + 'JEKYLL_ENV': 'production' |
| 67 | + }, |
64 | 68 | 'build_command': ['bundle', 'exec', 'jekyll', 'build', '--verbose', '--trace'],
|
65 | 69 | 'build_subdir': '_site',
|
66 | 70 | 'deploy_command': None
|
67 | 71 | },
|
68 | 72 | 'ascii_binder': {
|
| 73 | + 'build_env': {}, |
69 | 74 | 'build_command': ['bundle', 'exec', 'asciibinder', 'package', '--site=main', '--log-level=debug'],
|
70 | 75 | 'build_subdir': '_package/main',
|
71 | 76 | 'deploy_command': None
|
72 | 77 | },
|
73 | 78 | 'planet': {
|
| 79 | + 'build_env': {}, |
74 | 80 | 'build_command': ['/srv/builder/planet-venus/planet.py', '-v', 'planet.ini'],
|
75 | 81 | 'build_subdir': 'build',
|
76 | 82 | 'deploy_command': None
|
@@ -335,6 +341,10 @@ def do_rsync(source):
|
335 | 341 | pass
|
336 | 342 | notify_error('install', C.output)
|
337 | 343 |
|
| 344 | + # set environment |
| 345 | + for env_name, env_value in builder_info[config['builder']]['build_env'].items(): |
| 346 | + os.environ[env_name] = env_value |
| 347 | + |
338 | 348 | try:
|
339 | 349 | command = builder_info[config['builder']]['build_command']
|
340 | 350 | syslog.syslog("Build of {}: {}".format(name, ' '.join(command)))
|
|
0 commit comments