Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

39
.rider/lint.sh Normal file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
#set -x
pkgs=`.rider/changepkgs.sh|grep -v ^vendor/`
exitCode=$?
if [[ ${exitCode} -ne 0 ]]; then
echo ".rider/changepkgs.sh fail"
exit ${exitCode}
fi
if [[ "${pkgs}" = "" ]]; then
echo "no changepkgs"
exit 0
fi
echo -e "change packages:\n${pkgs}\n"
if [ ! -d "${CI_PROJECT_DIR}/../src" ];then
mkdir ${CI_PROJECT_DIR}/../src
fi
ln -fs ${CI_PROJECT_DIR} ${CI_PROJECT_DIR}/../src
export GOPATH=${CI_PROJECT_DIR}/..
echo "GOPATH: $GOPATH"
cd $GOPATH/src/go-common
exitCode=0
echo -e "\ngometalinter:"
output=`gometalinter --config=.rider/.gometalinter.json ${pkgs}`
exitCode=$?
if [[ "${output}" != "" ]]; then
exitCode=1
echo -e "${output}"
fi
exit ${exitCode}