Skip to content

Commit

Permalink
Fix upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 8, 2018
1 parent f5ce4bf commit ba1d086
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions travis/test-upgrade-convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function createv220 {
}

function printdiff {
ls -l .UPGRADE*
for f in $(ls -1 *.diff)
do
echo "--- $f ---"
Expand Down Expand Up @@ -252,11 +253,21 @@ fi
if [ "$1" = "v230-docker" ]
then
cp travis/old-project.yaml ${WORKSPACE}/v230-docker/testgeomapfish/project.yaml.mako
cd ${WORKSPACE}/v230-docker/testgeomapfish
./docker-run make project.yaml
cd -
cp travis/from23-config ${WORKSPACE}/v230-docker/testgeomapfish/.config
cd ${WORKSPACE}/v230-docker/testgeomapfish
git add project.yaml.mako .config
git commit --quiet --message="Start upgrade"
./docker-run --env=NODE_ENV make upgrade
if [ ! -e .UPGRADE8 ]
then
printdiff
echo "Fail to upgrade"
exit 1
fi
./docker-run --env=NODE_ENV make upgrade9
if [ ! -e .UPGRADE_SUCCESS ]
then
printdiff
Expand All @@ -274,6 +285,9 @@ fi
if [ "$1" = "v230-nondocker" ]
then
cp travis/old-project.yaml ${WORKSPACE}/v230-nondocker/testgeomapfish/project.yaml.mako
cd ${WORKSPACE}/v230-docker/testgeomapfish
./docker-run make project.yaml
cd -
cp travis/from23-config ${WORKSPACE}/v230-nondocker/testgeomapfish/.config
cd ${WORKSPACE}/v230-nondocker/testgeomapfish
echo "UPGRADE_ARGS += --force-docker --new-makefile=Makefile" > temp.mk
Expand All @@ -282,6 +296,13 @@ then
git add project.yaml.mako .config temp.mk
git commit --quiet --message="Start upgrade"
./docker-run --env=NODE_ENV make --makefile=temp.mk upgrade
if [ ! -e .UPGRADE8 ]
then
printdiff
echo "Fail to upgrade"
exit 1
fi
./docker-run --env=NODE_ENV make upgrade9
if [ ! -e .UPGRADE_SUCCESS ]
then
echo "Fail to upgrade"
Expand Down

0 comments on commit ba1d086

Please sign in to comment.