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

Add windows nightly build #411

Merged
merged 3 commits into from Jun 30, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Add Windows nightly builder

Also add a single environment to use for uploading nightlies,
thus restricting the environment variables passed to the upload script
and making it easier to add other uploading environments.

Also fix the make_step functions to actually use the configured
environment instead of just using self.environment.
  • Loading branch information
aneeshusa committed Jun 30, 2016
commit eaf5c68a8f775eb3b674102c13719523ea0dad2c
@@ -1,4 +1,5 @@
from passwords import GITHUB_DOC_TOKEN
from passwords import S3_UPLOAD_ACCESS_KEY_ID, S3_UPLOAD_SECRET_ACCESS_KEY


class Environment(dict):
@@ -115,3 +116,8 @@ def __add__(self, other):
'PKG_CONFIG_PATH': '/usr/lib/aarch64-linux-gnu/pkgconfig',
'SERVO_RUSTC_WITH_GOLD': 'False',
})

upload_nightly = Environment({
'AWS_ACCESS_KEY_ID': S3_UPLOAD_ACCESS_KEY_ID,
'AWS_SECRET_ACCESS_KEY': S3_UPLOAD_SECRET_ACCESS_KEY,
})
@@ -9,7 +9,6 @@
import yaml

import environments as envs
from passwords import S3_UPLOAD_ACCESS_KEY_ID, S3_UPLOAD_SECRET_ACCESS_KEY


SERVO_REPO = "https://github.com/servo/servo"
@@ -107,10 +106,9 @@ def make_step(self, command):
# Provide environment variables for s3cmd
elif arg == './etc/ci/upload_nightly.sh':
step_kwargs['logEnviron'] = False
step_env['AWS_ACCESS_KEY_ID'] = S3_UPLOAD_ACCESS_KEY_ID
step_env['AWS_SECRET_ACCESS_KEY'] = S3_UPLOAD_SECRET_ACCESS_KEY
step_env = copy.deepcopy(envs.upload_nightly)

step_kwargs['env'] = self.environment
step_kwargs['env'] = step_env
return step_class(**step_kwargs)


@@ -194,10 +192,9 @@ def make_step(self, command):
# Provide environment variables for s3cmd
elif arg == './etc/ci/upload_nightly.sh':
step_kwargs['logEnviron'] = False
step_env['AWS_ACCESS_KEY_ID'] = S3_UPLOAD_ACCESS_KEY_ID
step_env['AWS_SECRET_ACCESS_KEY'] = S3_UPLOAD_SECRET_ACCESS_KEY
step_env = copy.deepcopy(envs.upload_nightly)

step_kwargs['env'] = self.environment
step_kwargs['env'] = step_env
return step_class(**step_kwargs)


@@ -246,3 +243,16 @@ def make_win_command(command):
env=envs.build_windows),
# TODO: run lockfile_changed.sh and manifest_changed.sh scripts
])

windows_nightly = ServoFactory([
# TODO same comments as windows builder
steps.Compile(command=make_win_command("./mach build --release"),
env=envs.build_windows),
steps.Test(command=make_win_command("./mach package --release"),
env=envs.build_windows),
steps.Compile(command=make_win_command(
"./etc/ci/upload_nightly.sh windows"
),
env=envs.upload_nightly,
logEnviron=False),
])
@@ -98,6 +98,7 @@ c['schedulers'].append(schedulers.ForceScheduler(
"mac-rel-css",
"mac-rel-wpt",
"windows",
"windows-nightly",
],
))
c['schedulers'].append(schedulers.Nightly(
@@ -107,6 +108,7 @@ c['schedulers'].append(schedulers.Nightly(
"android-nightly",
"linux-nightly",
"mac-nightly",
"windows-nightly",
],
hour=1,
minute=0,
@@ -179,6 +181,13 @@ c['builders'] = [
nextBuild=branch_priority,
category="auto",
),
util.BuilderConfig(
name="windows-nightly",
slavenames=WINDOWS_SLAVES,
factory=factories.windows_nightly,
nextBuild=branch_priority,
category="auto",
),
util.BuilderConfig(
name="doc",
slavenames=LINUX_SLAVES,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.