Skip to content

Commit

Permalink
Skip scan/crypto tests during travis build
Browse files Browse the repository at this point in the history
These tests were not run previously, as they were checked into the
vendor directory. Moreover, they're running too slowly and are causing
the build to hang and get killed.
  • Loading branch information
cbroglie authored and kisom committed Jul 26, 2018
1 parent c285e6c commit 80d5f5b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ ! -h gopath/src/${REPO_PATH} ]; then
ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
fi

ls "${GOPATH}/src/${REPO_PATH}"
echo "${GOPATH}/src/${REPO_PATH}"

PACKAGES=""
if [ "$#" != 0 ]; then
Expand All @@ -45,6 +45,11 @@ go install -tags "$BUILD_TAGS" ${REPO_PATH}/cmd/cfssl
COVPROFILES=""
for package in $(go list -f '{{if len .TestGoFiles}}{{.ImportPath}}{{end}}' $PACKAGES)
do
if echo $package | grep -q "/scan/crypto"; then
echo "skipped $package"
continue
fi

profile="$GOPATH/src/$package/.coverprofile"
if [ $ARCH = 'x86_64' ]; then
go test -race -tags "$BUILD_TAGS" --coverprofile=$profile $package
Expand All @@ -65,6 +70,10 @@ fi

for package in $PACKAGES
do
if echo $package | grep -q "/scan/crypto"; then
continue
fi

echo "fgt golint ${package}"
fgt golint "${package}"
done

0 comments on commit 80d5f5b

Please sign in to comment.