Update build

This commit is contained in:
Vladimir Mihailenco 2019-12-18 12:51:52 +02:00
parent d7ce64d287
commit def106c404
2 changed files with 2 additions and 3 deletions

View File

@ -8,6 +8,7 @@ services:
go: go:
- 1.11.x - 1.11.x
- 1.12.x - 1.12.x
- 1.13.x
- tip - tip
matrix: matrix:

View File

@ -3,7 +3,6 @@ all: testdeps
go test ./... -short -race go test ./... -short -race
go test ./... -run=NONE -bench=. -benchmem go test ./... -run=NONE -bench=. -benchmem
env GOOS=linux GOARCH=386 go test ./... env GOOS=linux GOARCH=386 go test ./...
go vet
golangci-lint run golangci-lint run
testdeps: testdata/redis/src/redis-server testdeps: testdata/redis/src/redis-server
@ -15,8 +14,7 @@ bench: testdeps
testdata/redis: testdata/redis:
mkdir -p $@ mkdir -p $@
wget -qO- https://github.com/antirez/redis/archive/5.0.tar.gz | tar xvz --strip-components=1 -C $@ wget -qO- http://download.redis.io/releases/redis-5.0.7.tar.gz | tar xvz --strip-components=1 -C $@
testdata/redis/src/redis-server: testdata/redis testdata/redis/src/redis-server: testdata/redis
sed -i.bak 's/libjemalloc.a/libjemalloc.a -lrt/g' $</src/Makefile
cd $< && make all cd $< && make all