Commit 00bf031d authored by Ma_124's avatar Ma_124

added .hooks

parent b9293652
#!/bin/sh
printf "\n\n[hooks installed]\n<!-- You MUST NOT add the above line manually or if you haven't installed all the hooks in this directory. -->\n" >> $1
#!/bin/bash
echo "Installing git hooks..."
for f in .hooks/*.sh
do
f=${f##*/}
if [ "$f" != "install.sh" ]; then
echo "Installing .hooks/$f"
cp .hooks/$f .git/hooks/${f%*.sh}
chmod u+x .git/hooks/${f%*.sh}
fi
done
#!/bin/sh
go fmt $(go list ./... | grep -v /vendor/)
go vet --composites=false `go list ./... | grep -v /vendor/`
if [ $? -ne 0 ]; then
echo "Please fix the go vet issue first"
exit 1
fi
#!/bin/sh
if [ -z "$NO_TEST" ]; then
go test -race `go list ./... | grep -v /vendor/`
else
echo 'Skipping tests because $NO_TEST was specified.'
fi
[![Build Status](https://gitlab.com/Ma_124/awesome-framework/badges/master/build.svg)](https://gitlab.com/Ma_124/awesome-framework/commits/master)
[![Coverage Report](https://gitlab.com/Ma_124/awesome-framework/badges/master/coverage.svg)](https://gitlab.com/Ma_124/awesome-framework/commits/master)
[![codecov](https://codecov.io/gl/Ma_124/awesome-framework/branch/master/graph/badge.svg)](https://codecov.io/gl/Ma_124/awesome-framework)
[![Go Report Card](https://goreportcard.com/badge/gitlab.com/Ma_124/awesome-framework)](https://goreportcard.com/report/gitlab.com/Ma_124/awesome-framework)
[![License MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://ma124.js.org/l/MIT/~/2019)
[![CII Best Practices](https://img.shields.io/cii/level/2506.svg)](https://bestpractices.coreinfrastructure.org/en/projects/2506)
# Awesome Framework
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment