From 7f812692668ca77a1db8573ea8481be690b2aa76 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 13 Dec 2016 15:41:25 +0800 Subject: [PATCH] add postgres tests on circle ci --- circle.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index 3a8502f8..62aceeb9 100644 --- a/circle.yml +++ b/circle.yml @@ -11,10 +11,15 @@ database: - mysql -u root -e "CREATE DATABASE xorm_test1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci" - mysql -u root -e "CREATE DATABASE xorm_test2 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci" - mysql -u root -e "CREATE DATABASE xorm_test3 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci" - + - createdb -p 5432 -e -U ubuntu xorm_test + - createdb -p 5432 -e -U ubuntu xorm_test1 + - createdb -p 5432 -e -U ubuntu xorm_test2 + - createdb -p 5432 -e -U ubuntu xorm_test3 + test: override: # './...' is a relative pattern which means all subdirectories - go test -v -race - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./sqlite3.sh - - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./mysql.sh \ No newline at end of file + - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./mysql.sh + - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./postgres.sh \ No newline at end of file