Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide secrets for `./mach upload-nightly` #675

Merged
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Provide secrets for `./mach upload-nightly`

Also remove s3cmd related code,
as we now use boto3 for uploads.
  • Loading branch information
aneeshusa committed May 22, 2017
commit c95de051cc34366d3c30679a563cf30b6e4b6c34
@@ -189,44 +189,31 @@ def make_step(self, command):
step_class = steps.ShellCommand
args = iter(command)
for arg in args:
# Change Step class to capture warnings as needed
# (steps.Compile and steps.Test catch warnings)
if arg == './mach' or arg == 'mach.bat':
mach_arg = next(args)
step_desc = [mach_arg]

# Change Step class to capture warnings as needed
# (steps.Compile and steps.Test catch warnings)
if re.match('build(-.*)?', mach_arg):
step_class = steps.Compile
elif re.match('package', mach_arg):
step_class = steps.Compile
elif re.match('test-.*', mach_arg):
step_class = steps.Test

# Provide credentials where necessary
if re.match('upload-nightly', mach_arg):
step_kwargs['logEnviron'] = False
step_env += envs.upload_nightly

# Capture any logfiles
elif re.match('--log-.*', arg):
logfile = next(args)
if 'logfiles' not in step_kwargs:
step_kwargs['logfiles'] = {}
step_kwargs['logfiles'][logfile] = logfile

# Provide environment variables for s3cmd
elif (
arg == './etc/ci/upload_nightly.sh' or
arg == r'.\etc\ci\upload_nightly.sh'
):
step_kwargs['logEnviron'] = False
step_env += envs.upload_nightly
if self.is_windows:
# s3cmd on Windows GNU does not work in MINGW
step_env['MSYSTEM'] = 'MSYS'
step_env['PATH'] = ';'.join([
r'C:\msys64\usr\bin',
r'C:\Windows\system32',
r'C:\Windows',
r'C:\Windows\System32\Wbem',
r'C:\Windows\System32\WindowsPowerShell\v1.0',
r'C:\Program Files\Amazon\cfn-bootstrap',
])

else:
step_desc += [arg]

@@ -48,11 +48,6 @@ android-dependencies:
- refresh: True
- require:
- pkgrepo: openjdk
pip.installed:
- pkgs:
- s3cmd
- require:
- pkg: pip
{% for version, sdk in android.sdk.items() if version != 'current' %}
android-sdk-{{ version }}-purge:
@@ -69,7 +69,6 @@ servo-dependencies:
pip.installed:
- pkgs:
- ghp-import
- s3cmd
- require:
- pkg: pip
- pip: virtualenv
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.