github.com/everlongproject/i18n4go@v0.2.7-0.20201028180611-670cbaceaa6b/bin/test (about) 1 #!/bin/bash 2 3 ( 4 set -e 5 6 function printStatus { 7 if [ $? -eq 0 ]; then 8 echo -e "\nSWEET SUITE SUCCESS" 9 else 10 echo -e "\nSUITE FAILURE" 11 fi 12 } 13 14 trap printStatus EXIT 15 16 echo -e "\n Cleaning build artifacts..." 17 go clean 18 19 echo -e "\n Formatting packages..." 20 go fmt ./... 21 22 echo -e "\n Integration Testing packages:" 23 go test ./integration/... -parallel 4 $@ 24 25 echo -e "\n Vetting packages for potential issues..." 26 go tool vet cmds common i18n i18n4go 27 )