Skip to content
Snippets Groups Projects
Commit eed225b72979 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

minor script fixes

parent 25719b8f503b
No related branches found
No related tags found
No related merge requests found
2.0
2.1
......@@ -13,7 +13,7 @@
#
# - access to pg database
#
# Version 2.0
# Version 2.1
here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD)
dbname=$(basename $project_home)_test
......
#!/bin/zsh
# template version 2.0
# template version 2.1
# TODO add a way to bypass the value, maybe with a key in the setup.cfg file
repository=dockerhub.xcg.io
......
......@@ -4,7 +4,7 @@
# This script is used to run tests on a database with demo data installed.
#
# Either provide the name of the database (first argument) or it will default to <project>_test
# Version 2.0
# Version 2.1
here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD)
tested_modules=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print ','.join(c.get('odoo_scripts', 'module_list_tests', '').split())")
......
[bumpversion]
current_version = 2.0
current_version = 2.1
parse = (?P<major>\d+)\.(?P<minor>\d+)
serialize =
{major}.{minor}
......
......@@ -5,7 +5,7 @@
#
# You can set ODOO_DATA_DIR and ODOO_DB_HOST if you want to avoid using the default value ($HOME/var/tmp and localhost)
#
# Version 2.0
# Version 2.1
here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD)
echo "Starting odoo for development"
......@@ -53,7 +53,7 @@
echo "Odoo version: $odoo_version"
# odoo7, odoo8 or bzr
ODOO_TYPE=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print c.get('odoo_scripts', 'odoo_type', 'odoo8')"
ODOO_TYPE=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print c.get('odoo_scripts', 'odoo_type', 'odoo8')")
args=$*
if [ "$ODOO_TYPE" = "odoo8" ];
......@@ -85,5 +85,5 @@
else
if [ "$ODOO_TYPE" = "bzr" ];
then
addons_path="--addons-path=$($python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print(','.join(['$HOME/src/openobject-addons','$HOME/src/openerp-web/addons']+['${project_home}/'+line for line in c.get('odoo_scripts', 'odoo_type', 'addon_dirs').split()]))")"
addons_path="--addons-path=$($python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print(','.join(['$HOME/src/openobject-addons','$HOME/src/openerp-web/addons']+['${project_home}/'+line for line in c.get('odoo_scripts', 'addon_dirs', '').split()])))"
else
......@@ -89,5 +89,5 @@
else
addons_path="--addons-path=$($python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print(','.join(['$odoo/addons']+['${project_home}/'+line for line in c.get('odoo_scripts', 'odoo_type', 'addon_dirs').split()]))")"
addons_path="--addons-path=$($python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print(','.join(['$odoo/addons']+['${project_home}/'+line for line in c.get('odoo_scripts', 'addon_dirs', '').split()]))")"
fi
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment