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:
parent
53805e482a
commit
03512c2d0e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user