summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2015-02-19 13:50:24 +0100
committerAaron Bohy <aab@odoo.com>2015-02-20 16:56:13 +0100
commitaca65438e80bca7ab20501d654099873cd424366 (patch)
tree859b962891cfe151a2105ce290db6329f3c7da1c /setup
parent0200e31f7b704dd265c2a290697c80a286db5717 (diff)
[IMP] Packaging: version number in docker image name
Diffstat (limited to 'setup')
-rwxr-xr-xsetup/package.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setup/package.py b/setup/package.py
index 71de37bbf99..bdd5470e507 100755
--- a/setup/package.py
+++ b/setup/package.py
@@ -295,17 +295,17 @@ def _prepare_testing(o):
# Use rsync to copy requirements.txt in order to keep original permissions
subprocess.call(["rsync", "-a", "requirements.txt", os.path.join(o.build_dir, "docker_debian")],
cwd=os.path.join(o.odoo_dir))
- subprocess.call(["docker", "build", "-t", "odoo-debian-nightly-tests", "."],
+ subprocess.call(["docker", "build", "-t", "odoo-%s-debian-nightly-tests" % version, "."],
cwd=os.path.join(o.build_dir, "docker_debian"))
if not o.no_rpm:
subprocess.call(["mkdir", "docker_centos"], cwd=o.build_dir)
subprocess.call(["cp", "package.dfcentos", os.path.join(o.build_dir, "docker_centos", "Dockerfile")],
cwd=os.path.join(o.odoo_dir, "setup"))
- subprocess.call(["docker", "build", "-t", "odoo-centos-nightly-tests", "."],
+ subprocess.call(["docker", "build", "-t", "odoo-%s-centos-nightly-tests" % version, "."],
cwd=os.path.join(o.build_dir, "docker_centos"))
def test_tgz(o):
- with docker('odoo-debian-nightly-tests', o.build_dir, o.pub) as wheezy:
+ with docker('odoo-%s-debian-nightly-tests' % version, o.build_dir, o.pub) as wheezy:
wheezy.release = '*.tar.gz'
wheezy.system("service postgresql start")
wheezy.system('/usr/local/bin/pip install /opt/release/%s' % wheezy.release)
@@ -318,7 +318,7 @@ def test_tgz(o):
wheezy.system('su odoo -s /bin/bash -c "odoo.py --addons-path=/usr/local/lib/python2.7/dist-packages/openerp/addons -d mycompany &"')
def test_deb(o):
- with docker('odoo-debian-nightly-tests', o.build_dir, o.pub) as wheezy:
+ with docker('odoo-%s-debian-nightly-tests' % version, o.build_dir, o.pub) as wheezy:
wheezy.release = '*.deb'
wheezy.system("service postgresql start")
wheezy.system('su postgres -s /bin/bash -c "createdb mycompany"')
@@ -328,7 +328,7 @@ def test_deb(o):
wheezy.system('su odoo -s /bin/bash -c "odoo.py -c /etc/odoo/openerp-server.conf -d mycompany &"')
def test_rpm(o):
- with docker('odoo-centos-nightly-tests', o.build_dir, o.pub) as centos7:
+ with docker('odoo-%s-centos-nightly-tests' % version, o.build_dir, o.pub) as centos7:
centos7.release = '*.noarch.rpm'
# Start postgresql
centos7.system('su postgres -c "/usr/bin/pg_ctl -D /var/lib/postgres/data start"')