Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/extensions/bin/createNightlies.py

Issue 29323474: Issue 2896 - Automate uploading of Firefox development builds to AMO (Closed)
Patch Set: Cleaned up imports Created Aug. 13, 2015, 12:59 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding: utf-8 1 # coding: utf-8
2 2
3 # This file is part of the Adblock Plus web scripts, 3 # This file is part of the Adblock Plus web scripts,
4 # Copyright (C) 2006-2015 Eyeo GmbH 4 # Copyright (C) 2006-2015 Eyeo GmbH
5 # 5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify 6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as 7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
9 # 9 #
10 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details. 13 # GNU General Public License for more details.
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 16 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
17 17
18 """ 18 """
19 19
20 Nightly builds generation script 20 Nightly builds generation script
21 ================================ 21 ================================
22 22
23 This script generates nightly builds of extensions, together 23 This script generates nightly builds of extensions, together
24 with changelogs and documentation. 24 with changelogs and documentation.
25 25
26 """ 26 """
27 27
28 import sys, os, os.path, subprocess, ConfigParser, json, hashlib 28 import ConfigParser
29 import tempfile, shutil, urlparse, pipes, time, urllib2, struct
30 import cookielib 29 import cookielib
30 from datetime import datetime
31 import hashlib
31 import HTMLParser 32 import HTMLParser
33 import json
32 import logging 34 import logging
33 from datetime import datetime 35 import os
36 import pipes
37 import shutil
38 import struct
39 import subprocess
40 import sys
41 import tempfile
42 import time
34 from urllib import urlencode 43 from urllib import urlencode
44 import urllib2
45 import urlparse
35 from xml.dom.minidom import parse as parseXml 46 from xml.dom.minidom import parse as parseXml
36 from sitescripts.utils import get_config, get_template 47
37 from sitescripts.extensions.utils import ( 48 from sitescripts.extensions.utils import (
38 compareVersions, Configuration, 49 compareVersions, Configuration,
39 writeAndroidUpdateManifest 50 writeAndroidUpdateManifest
40 ) 51 )
52 from sitescripts.utils import get_config, get_template
41 53
42 MAX_BUILDS = 50 54 MAX_BUILDS = 50
43 55
44 56
45 class NightlyBuild(object): 57 class NightlyBuild(object):
46 """ 58 """
47 Performs the build process for an extension, 59 Performs the build process for an extension,
48 generating changelogs and documentation. 60 generating changelogs and documentation.
49 """ 61 """
50 62
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 except Exception, ex: 634 except Exception, ex:
623 logging.error("The build for %s failed:", repo) 635 logging.error("The build for %s failed:", repo)
624 logging.exception(ex) 636 logging.exception(ex)
625 637
626 file = open(nightlyConfigFile, 'wb') 638 file = open(nightlyConfigFile, 'wb')
627 nightlyConfig.write(file) 639 nightlyConfig.write(file)
628 640
629 641
630 if __name__ == '__main__': 642 if __name__ == '__main__':
631 main() 643 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld