Skip to content
Snippets Groups Projects
Commit 21aa3712 authored by 邹毅贤's avatar 邹毅贤
Browse files

add before validate script and fix travis problem

parent 85b55007
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,9 @@ install: true
script:
- go fmt ./... && [[ -z `git status -s` ]]
- chmod u+x before_ut.sh && ./before_ut.sh
- chmod u+x validate_license.sh && ./validate_license.sh && [[ -z `git status -s` ]]
- chmod u+x before_validate_license.sh && ./before_validate_license.sh && [[ -z `git status -s` ]]
- chmod u+x tools/license/license-header-checker
- tools/license/license-header-checker -a -r -i vendor tools/license/license.txt . go
- go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic
after_success:
......
......@@ -24,6 +24,3 @@ licensePath="tools/license"
mkdir -p ${licensePath}
wget -P "${licensePath}" ${remoteLicenseCheckerURL}
wget -P "${licensePath}" ${remoteLicenseURL}
#more usage check: https://github.com/lsm-dev/license-header-checker
${licensePath}/${remoteLicenseCheckerName} -a -r -i vendor tools/license/license.txt . go
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