def prepare_params(self, params): assert 'workerType' not in params params['workerType'] = 'win2012r2' assert 'mounts' not in params params['mounts'] = [self] params.setdefault('env', {})['MSYSTEM'] = mingw(self.cpu) command = [] command.append('set HOME=%CD%') command.append('set ARTIFACTS=%CD%') for path in (mingw(self.cpu), 'usr'): command.append('set PATH=%CD%\\{}\\{}\\bin;%PATH%' .format(msys(self.cpu), path)) command.append( 'set PATH=%CD%\\git\\{}\\bin;%PATH%'.format(mingw(self.cpu))) if self.PREFIX != 'msys': command.append('bash -c -x "{}"'.format('; '.join(( 'for postinst in /etc/post-install/*.post', 'do test -e $postinst && . $postinst', 'done', )))) command.append(' '.join( _quote(arg) for arg in bash_command(*params['command']))) params['command'] = command return params
def prepare_params(self, params): assert 'workerType' not in params params['workerType'] = 'win2012r2' assert 'mounts' not in params params['mounts'] = [self] params.setdefault('env', {})['MSYSTEM'] = mingw(self.cpu) command = [] command.append('set HOME=%CD%') command.append('set ARTIFACTS=%CD%') for path in (mingw(self.cpu), 'usr'): command.append('set PATH=%CD%\\{}\\{}\\bin;%PATH%' .format(msys(self.cpu), path)) command.append( 'set PATH=%CD%\\git\\{}\\bin;%PATH%'.format(mingw(self.cpu))) if self.PREFIX != 'msys': command.append('bash -c -x "{}"'.format('; '.join(( 'for postinst in /etc/post-install/*.post', 'do test -e $postinst && . $postinst', 'done', )))) command.append(' '.join( _quote(arg) for arg in bash_command(*params['command']))) params['command'] = command return params
def prepare_params(self, params): if 'image' not in params: params['image'] = self params['command'] = bash_command(*params['command']) params.setdefault('env', {})['ARTIFACTS'] = '/tmp' if 'artifacts' in params: params['artifacts'] = ['{}/{}'.format('/tmp', a) for a in params['artifacts']] return params
def prepare_params(self, params): if 'image' not in params: params['image'] = self params['command'] = bash_command(*params['command']) params.setdefault('env', {})['ARTIFACTS'] = '/tmp' if 'artifacts' in params: params['artifacts'] = ['{}/{}'.format('/tmp', a) for a in params['artifacts']] return params
def prepare_params(self, params): assert 'workerType' not in params params['provisionerId'] = 'proj-git-cinnabar' params['workerType'] = 'osx-{}'.format(self.version).replace('.', '-') command = [] command.append('export PWD=$(pwd)') command.append('export ARTIFACTS=$PWD') command.append('virtualenv venv') command.append('. venv/bin/activate') command.extend(params['command']) params['command'] = bash_command(*command) if self.name == 'build': env = params.setdefault('env', {}) env.setdefault('MACOSX_DEPLOYMENT_TARGET', '10.6') env.setdefault('CC', 'clang') return params
def prepare_params(self, params): assert 'workerType' not in params params['provisionerId'] = 'proj-git-cinnabar' params['workerType'] = 'osx-{}'.format(self.version).replace('.', '-') command = [] command.append('export PWD=$(pwd)') command.append('export ARTIFACTS=$PWD') command.append('virtualenv venv') command.append('. venv/bin/activate') command.extend(params['command']) params['command'] = bash_command(*command) if self.name == 'build': env = params.setdefault('env', {}) env.setdefault('MACOSX_DEPLOYMENT_TARGET', '10.6') env.setdefault('CC', 'clang') return params
def prepare_params(self, params): assert 'workerType' not in params params['provisionerId'] = 'proj-git-cinnabar' params['workerType'] = 'osx{}'.format(self.worker_suffix) command = [] command.append('export PWD=$(pwd)') command.append('export ARTIFACTS=$PWD') command.append('virtualenv venv') command.append('. venv/bin/activate') command.extend(params['command']) params['command'] = bash_command(*command) env = params.setdefault('env', {}) dev = env.setdefault( 'DEVELOPER_DIR', '/Applications/Xcode_11.7.app/Contents/Developer') env.setdefault( 'SDKROOT', '{}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk'. format(dev)) return params