github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/cli/tasks/units-osx.yml (about) 1 --- 2 platform: darwin 3 4 inputs: 5 - name: cli 6 path: gopath/src/code.cloudfoundry.org/cli 7 8 run: 9 path: bash 10 args: 11 - -c 12 - | 13 set -e 14 15 export GOPATH=$PWD/gopath 16 export PATH=$GOPATH/bin:$PATH 17 18 cd $GOPATH/src/code.cloudfoundry.org/cli 19 20 export LC_ALL="en_US.UTF-8" 21 22 go version 23 24 go get -u github.com/onsi/ginkgo/ginkgo 25 ginkgo version 26 27 echo -e "\n Checking that packages have been go formatted..." 28 # we actually want the grep to exit 1 (i.e., no matches found) here 29 set +e 30 # we don't care about format errors in vendor directories 31 unformatted="$(gofmt -l . | grep -v -e ^vendor)" 32 if [[ -n $unformatted ]]; then 33 echo "The following files have not been go formatted:" 34 echo $unformatted 35 echo "Please run 'make format' and push again." 36 exit 1 37 fi 38 set -e 39 40 make units-full