1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-23 11:14:48 +02:00

Run test/lint only when *.go/h/c files are changed

This commit is contained in:
DarthSim 2019-09-11 17:25:57 +06:00
parent 53805e482a
commit 03512c2d0e
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/bin/sh
if ! git diff --name-only | grep -qe ".*\.go$"; then
echo "Nothing to lint"
exit 0;
fi
if [ -x "$(which brew)" ]; then
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
fi

View File

@ -1,5 +1,10 @@
#!/bin/sh
if ! git diff --name-only | grep -qe ".*\.(go|h|c)$"; then
echo "Nothing to test"
exit 0;
fi
if [ -x "$(which brew)" ]; then
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
fi