Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
959d450f
Commit
959d450f
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
do_tests.zsh: Use pg_extensions env var if it has values
parent
33f6cde5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!200
📝 do_tests.zsh: Use pg_extensions env var if it has values
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+6
-0
6 additions, 0 deletions
NEWS.rst
do_tests.zsh
+7
-0
7 additions, 0 deletions
do_tests.zsh
with
13 additions
and
0 deletions
NEWS.rst
+
6
−
0
View file @
959d450f
...
...
@@ -2,6 +2,12 @@
History
=======
20.11.0
-------
do_tests.zsh: allow using env var pg_extension to describe extensions to install. Allow compatibility with modules
requiring a specific extension.
20.10.1
-------
...
...
This diff is collapsed.
Click to expand it.
do_tests.zsh
+
7
−
0
View file @
959d450f
...
...
@@ -118,4 +118,5 @@
then
extensions+
=
unaccent
fi
# for super project, read the configuration file
extensions+
=(
$(
read_odoo_scripts_configuration_key pg.extensions
)
)
...
...
@@ -121,4 +122,10 @@
extensions+
=(
$(
read_odoo_scripts_configuration_key pg.extensions
)
)
# for modules without configuration file, allow environment variable
# (expected format is space separated extensions
if
[[
-z
"
$pg_extensions
"
]]
;
then
extensions+
=(
${
(s
:
:
)pg_extensions
}
)
fi
for
extension
in
$extensions
;
do
echo
"
$INFO
Create extension
$extension
in '
$dbname
'"
psql
$PG_HOST
$PG_USER
$dbname
-c
"CREATE EXTENSION IF NOT EXISTS
$extension
;"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment