Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Git committed Feb 16, 2020
1 parent ddbcc04 commit ec63903
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dev-down:

go-test:
go test -failfast -race ./integration_test
cd pkg/registry/test_data && make build
go test -timeout 10m -coverprofile=cover.out $(TEST_DIRS) && go tool cover -func=cover.out | tail -n 1

test-local:
Expand Down
6 changes: 5 additions & 1 deletion docker-compose-gravity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
- ./mycnf:/etc/mysql/conf.d

target-db:
image: mysql:5.7.18
image: mysql:5.7
container_name: target-db-test
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
Expand Down Expand Up @@ -96,6 +96,8 @@ services:

pump:
image: pingcap/tidb-binlog:latest
logging:
driver: none
volumes:
- ./integration_test/config/pump.toml:/pump.toml:ro
command:
Expand All @@ -112,6 +114,8 @@ services:

drainer:
image: pingcap/tidb-binlog:latest
logging:
driver: none
volumes:
- ./integration_test/config/drainer.toml:/drainer.toml:ro
command:
Expand Down
10 changes: 7 additions & 3 deletions pkg/registry/test_data/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
PWD = $(shell pwd)

default:
docker run --rm -v $(PWD):/usr/src/myapp -w /usr/src/myapp -e GOOS=linux -e GOARCH=amd64 golang:1.11.4 go build -buildmode=plugin -v -o dump_filter_plugin.linux.so dump_filter_plugin.go
GOARCH=amd64 GOOS=darwin go build -buildmode=plugin -o dump_filter_plugin.darwin.so dump_filter_plugin.go
docker:
docker run --rm -v $(PWD):/usr/src/myapp -w /usr/src/myapp -e GOOS=linux -e GOARCH=amd64 golang:1.13.3 go build -buildmode=plugin -v -o dump_filter_plugin.linux.so dump_filter_plugin.go
GOARCH=amd64 GOOS=darwin go build -buildmode=plugin -o dump_filter_plugin.darwin.so dump_filter_plugin.go

build:
GOOS=linux GOARCH=amd64 go build -buildmode=plugin -o dump_filter_plugin.linux.so dump_filter_plugin.go
GOOS=darwin GOARCH=amd64 go build -buildmode=plugin -o dump_filter_plugin.darwin.so dump_filter_plugin.go
Binary file removed pkg/registry/test_data/dump_filter_plugin.darwin.so
Binary file not shown.
Binary file removed pkg/registry/test_data/dump_filter_plugin.linux.so
Binary file not shown.

0 comments on commit ec63903

Please sign in to comment.