mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
modified test.sh
This commit is contained in:
parent
89ff84cc65
commit
ef2da4b151
1 changed files with 2 additions and 4 deletions
6
test.sh
6
test.sh
|
|
@ -3,8 +3,6 @@
|
|||
set -e
|
||||
echo "" > coverage.txt
|
||||
|
||||
export GOFLAGS=-mod=vendor
|
||||
|
||||
# Use pure Go PGP implementation to avoid CGO dependency on gpgme
|
||||
# Exclude btrfs driver to avoid CGO dependency on libbtrfs
|
||||
BUILD_TAGS="-tags=containers_image_openpgp,exclude_graphdriver_btrfs"
|
||||
|
|
@ -14,7 +12,7 @@ if command -v gotest; then
|
|||
use_go_test=true
|
||||
fi
|
||||
|
||||
for d in $( find ./* -maxdepth 10 ! -path "./vendor*" ! -path "./.git*" ! -path "./scripts*" -type d); do
|
||||
for d in $( find ./* -maxdepth 10 ! -path "./.git*" ! -path "./scripts*" -type d); do
|
||||
if ls $d/*.go &> /dev/null; then
|
||||
args="$BUILD_TAGS -coverprofile=profile.out -covermode=atomic $d"
|
||||
if [ "$use_go_test" == true ]; then
|
||||
|
|
@ -27,4 +25,4 @@ for d in $( find ./* -maxdepth 10 ! -path "./vendor*" ! -path "./.git*" ! -path
|
|||
rm profile.out
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
Loading…
Add table
Reference in a new issue