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
4
test.sh
4
test.sh
|
|
@ -3,8 +3,6 @@
|
||||||
set -e
|
set -e
|
||||||
echo "" > coverage.txt
|
echo "" > coverage.txt
|
||||||
|
|
||||||
export GOFLAGS=-mod=vendor
|
|
||||||
|
|
||||||
# Use pure Go PGP implementation to avoid CGO dependency on gpgme
|
# Use pure Go PGP implementation to avoid CGO dependency on gpgme
|
||||||
# Exclude btrfs driver to avoid CGO dependency on libbtrfs
|
# Exclude btrfs driver to avoid CGO dependency on libbtrfs
|
||||||
BUILD_TAGS="-tags=containers_image_openpgp,exclude_graphdriver_btrfs"
|
BUILD_TAGS="-tags=containers_image_openpgp,exclude_graphdriver_btrfs"
|
||||||
|
|
@ -14,7 +12,7 @@ if command -v gotest; then
|
||||||
use_go_test=true
|
use_go_test=true
|
||||||
fi
|
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
|
if ls $d/*.go &> /dev/null; then
|
||||||
args="$BUILD_TAGS -coverprofile=profile.out -covermode=atomic $d"
|
args="$BUILD_TAGS -coverprofile=profile.out -covermode=atomic $d"
|
||||||
if [ "$use_go_test" == true ]; then
|
if [ "$use_go_test" == true ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue