From e3292b3b4171cefe59694391729aa997640cc92e Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Fri, 19 Jun 2020 18:44:19 +0800 Subject: [PATCH] Test with latest driver vesion --- tests/tests_all.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/tests_all.sh b/tests/tests_all.sh index affb1847..fd696e38 100755 --- a/tests/tests_all.sh +++ b/tests/tests_all.sh @@ -4,6 +4,14 @@ if [[ $(pwd) == *"gorm/tests"* ]]; then cd .. fi +if [ -d tests ] +then + cd tests + cp go.mod go.mod.bak + sed '/gorm.io\/driver/d' go.mod.bak > go.mod + cd .. +fi + for dialect in "${dialects[@]}" ; do if [ "$GORM_DIALECT" = "" ] || [ "$GORM_DIALECT" = "${dialect}" ] then @@ -35,3 +43,9 @@ for dialect in "${dialects[@]}" ; do fi fi done + +if [ -d tests ] +then + cd tests + mv go.mod.bak go.mod +fi