fastmirror/Makefile

19 lines
371 B
Makefile

TESTHOST := nnny-sync-alpha.nebula
fmt:
go fmt ./...
lint:
golangci-lint run
test:
rsync -avP --exclude .git --delete ./ root@$(TESTHOST):/root/fastmirror
ssh root@$(TESTHOST) "cd /root/fastmirror && make dotest"
dotest:
rm -f /etc/apt/sources.list.d/*
cp /root/ubuntu.sources /etc/apt/sources.list.d/
go build -o ./fastmirror ./cmd/fastmirror
./fastmirror