This commit is contained in:
2024-05-22 13:58:36 -07:00
parent b168c1f7d2
commit 540926358b
5 changed files with 32 additions and 2 deletions

View File

@@ -1,5 +1,18 @@
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