neko/dev/lint

15 lines
469 B
Plaintext
Raw Permalink Normal View History

2022-07-14 10:55:56 +12:00
#!/bin/bash
cd "$(dirname "$0")"
if [ "$(docker images -q neko_server_build 2> /dev/null)" == "" ]; then
2024-06-17 02:26:42 +12:00
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
2022-07-14 10:55:56 +12:00
fi
#
# build server
docker run --rm -it \
-v "${PWD}/../:/src" \
--entrypoint="/bin/bash" \
neko_server_build -c '[ -f ./bin/golangci-lint ] || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.31.0;./bin/golangci-lint run';