This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 785965: adjust push to mirrors process for CDN. r=nthomas
--HG-- rename : scripts/release/push-to-mirrors.py => scripts/release/stage-tasks.py rename : scripts/release/push-to-mirrors.sh => scripts/release/stage-tasks.sh
- Loading branch information
Showing
6 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
import unittest | |||
|
|||
from release.paths import makeReleasesDir | |||
|
|||
class TestReleasesDir(unittest.TestCase): | |||
def testBaseReleases(self): | |||
got = makeReleasesDir('bbb') | |||
self.assertEquals('/pub/mozilla.org/bbb/releases/', got) | |||
|
|||
def testVersioned(self): | |||
got = makeReleasesDir('aa', '15.1') | |||
self.assertEquals('/pub/mozilla.org/aa/releases/15.1/', got) | |||
|
|||
def testRemote(self): | |||
got = makeReleasesDir('yy', protocol='http', server='foo.bar') | |||
self.assertEquals('http://foo.bar/pub/mozilla.org/yy/releases/', got) | |||
|
|||
def testRemoteAndVersioned(self): | |||
got = makeReleasesDir('yx', '1.0', protocol='https', server='cee.dee') | |||
self.assertEquals('https://cee.dee/pub/mozilla.org/yx/releases/1.0/', got) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
from util.commands import run_cmd | |||
|
|||
def scp(src, dst, sshKey=None): | |||
cmd = ['scp', '-o', 'BatchMode=yes'] | |||
if sshKey: | |||
cmd.extend(['-o', 'IdentityFile=%s' % sshKey]) | |||
cmd.extend([src, dst]) | |||
return run_cmd(cmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters