github.com/iotexproject/iotex-core@v1.14.1-rc1/pre-commit (about) 1 #!/bin/bash 2 3 # if [ ! -f /usr/local/bin/circleci ]; then 4 # curl -fLSs https://circle.ci/cli | sudo bash 5 # echo "Please enter the apitoken" 6 # circleci setup 7 # fi 8 9 #CURR_DIR="$(dirname $0)" 10 #workspace=$(cd ../../) 11 export LD_LIBRARY_PATH=:$GOPATH/src/github.com/iotexproject/iotex-core/crypto/lib 12 check_result() { 13 if [ $? != 0 ]; then 14 echo "$1 failed!!" 15 echo "commit will not execute" 16 echo "$?" 17 exit 1 18 else 19 echo "$1 passed." 20 echo "commit will execute" 21 echo "$?" 22 fi 23 } 24 25 ./go.test.sh 26 check_result go.test.sh 27 curl -s https://codecov.io/bash|bash 28 go test -run=XXX -bench=. $(go list ./crypto) 29 check_result go_test_run 30 make minicluster 31 check_result make_minicluster