Skip to content

Commit

Permalink
[ADD] test-mig.sh: helper script to test migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Nov 26, 2019
1 parent b0af686 commit 39b39e0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test-mig.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -e
ROOT=/Users/chs/devel/odoo/

if [[ $# != 3 ]]; then
echo "Usage: $0 <source> <target> <module>"
exit 1
fi
SRC=$1
TRG=$2
MOD=$3

set -x
pushd $ROOT/enterprise
git checkout -q "$SRC"
popd
pushd $ROOT/odoo/stable
git checkout -q "$SRC"
oe-test.sh -ne "$MOD"
git checkout -q "$TRG"
pushd $ROOT/enterprise
git checkout -q "$TRG"
popd
oe-migrate.sh -c -e -w "${DB:-test}"
popd

0 comments on commit 39b39e0

Please sign in to comment.