mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Move windows and mac nightly builds to taskcluster.
This commit is contained in:
parent
6ded5c9707
commit
e0e8f64f54
4 changed files with 55 additions and 27 deletions
|
@ -178,15 +178,15 @@ class Task:
|
|||
self
|
||||
.with_scopes("secrets:get:project/servo/s3-upload")
|
||||
.with_env(PY=r"""if 1:
|
||||
import urllib, json
|
||||
import urllib, json, os
|
||||
from os.path import expanduser, join
|
||||
url = "http://taskcluster/secrets/v1/secret/project/servo/s3-upload"
|
||||
secret = json.load(urllib.urlopen(url))["secret"]
|
||||
open("/root/.aws/credentials", "w").write(secret["credentials_file"])
|
||||
""")
|
||||
.with_script("""
|
||||
mkdir /root/.aws
|
||||
python -c "$PY"
|
||||
aws_dir = expanduser("~/.aws")
|
||||
os.mkdir(aws_dir)
|
||||
open(join(aws_dir, "credentials"), "w").write(secret["credentials_file"])
|
||||
""")
|
||||
.with_script('python -c "$PY"')
|
||||
)
|
||||
|
||||
def build_worker_payload(self): # pragma: no cover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue