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 all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -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),
])
@@ -63,15 +63,15 @@ c['schedulers'].append(schedulers.AnyBranchScheduler(
name="servo-auto",
treeStableTimer=None,
builderNames=[
"android",
"arm32",
"arm64",
"linux-dev",
"linux-rel",
"linux-dev-yaml",
"mac-rel-wpt",
"linux-rel",
"mac-dev-unit",
"mac-rel-css",
"android",
"arm32",
"arm64",
"mac-rel-wpt",
"windows",
],
change_filter=util.ChangeFilter(filter_fn=servo_auto_try_filter),
@@ -91,11 +91,14 @@ c['schedulers'].append(schedulers.ForceScheduler(
"arm64",
"linux-dev",
"linux-dev-yaml",
"linux-nightly",
"linux-rel",
"mac-dev-unit",
"mac-nightly",
"mac-rel-css",
"mac-rel-wpt",
"windows",
"windows-nightly",
],
))
c['schedulers'].append(schedulers.Nightly(
@@ -105,6 +108,7 @@ c['schedulers'].append(schedulers.Nightly(
"android-nightly",
"linux-nightly",
"mac-nightly",
"windows-nightly",
],
hour=1,
minute=0,
@@ -158,17 +162,17 @@ class DynamicServoYAMLBuilder(util.BuilderConfig):
)

c['builders'] = [
DynamicServoBuilder("linux-dev", LINUX_SLAVES, envs.build_linux),
DynamicServoBuilder("linux-rel", LINUX_SLAVES, envs.build_linux),
DynamicServoBuilder("linux-nightly", LINUX_SLAVES, envs.build_linux),
DynamicServoBuilder("android", CROSS_SLAVES, envs.build_android),
DynamicServoBuilder("android-nightly", CROSS_SLAVES, envs.build_android),
DynamicServoBuilder("arm32", CROSS_SLAVES, envs.build_arm32),
DynamicServoBuilder("arm64", CROSS_SLAVES, envs.build_arm64),
DynamicServoBuilder("linux-dev", LINUX_SLAVES, envs.build_linux),
DynamicServoBuilder("linux-nightly", LINUX_SLAVES, envs.build_linux),
DynamicServoBuilder("linux-rel", LINUX_SLAVES, envs.build_linux),
DynamicServoBuilder("mac-dev-unit", MAC_SLAVES, envs.build_mac),
DynamicServoBuilder("mac-rel-wpt", MAC_SLAVES, envs.build_mac),
DynamicServoBuilder("mac-rel-css", MAC_SLAVES, envs.build_mac),
DynamicServoBuilder("mac-nightly", MAC_SLAVES, envs.build_mac),
DynamicServoBuilder("android-nightly", CROSS_SLAVES, envs.build_android),
DynamicServoBuilder("mac-rel-css", MAC_SLAVES, envs.build_mac),
DynamicServoBuilder("mac-rel-wpt", MAC_SLAVES, envs.build_mac),
# The below builders are not dynamic but rather have hard-coded factories
util.BuilderConfig(
name="windows",
@@ -177,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.