Update circle.ci

This commit is contained in:
go-jet 2021-12-18 13:55:40 +01:00
parent 972fc1d9bf
commit b92af7ca6e
9 changed files with 128 additions and 127 deletions

View file

@ -14,14 +14,28 @@ checkout-testdata:
docker-compose-up:
docker-compose up
init-all:
go run ./init/init.go -testsuite all
init-postgres:
go run ./init/init.go -testsuite postgres
init-mysql:
go run ./init/init.go -testsuite mysql
init-mariadb:
go run ./init/init.go -testsuite mariadb
init-sqlite:
go run ./init/init.go -testsuite sqlite
# jet-gen will call generator on each of the test databases to generate sql builder and model files need to run the tests.
jet-gen: install-jet-gen jet-gen-pg jet-gen-mysql jet-gen-mariadb jet-gen-sqlite
jet-gen-all: install-jet-gen jet-gen-postgres jet-gen-mysql jet-gen-mariadb jet-gen-sqlite
install-jet-gen:
go build -o ${GOPATH}/bin/jet ../cmd/jet/
jet-gen-pg:
jet-gen-postgres:
jet -dsn=postgres://jet:jet@localhost:50901/jetdb?sslmode=disable -schema=dvds -path=./.gentestdata/
jet -dsn=postgres://jet:jet@localhost:50901/jetdb?sslmode=disable -schema=chinook -path=./.gentestdata/
jet -dsn=postgres://jet:jet@localhost:50901/jetdb?sslmode=disable -schema=chinook2 -path=./.gentestdata/
@ -44,7 +58,5 @@ jet-gen-sqlite:
# docker-compose-cleanup will stop and remove test containers, volumes, and images.
# If temp .docker/ folder is still not empty, use 'sudo rm -rf .docker' to remove it.
cleanup:
docker-compose down --volumes
$(info INFO: If the ./.docker folder is still not empty, use 'sudo rm -rf .docker/' to remove it.)