Move windows and mac nightly builds to taskcluster.

This commit is contained in:
Josh Matthews 2019-05-02 00:00:21 -04:00
parent 6ded5c9707
commit e0e8f64f54
4 changed files with 55 additions and 27 deletions

View file

@ -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