github.com/arunkumar7540/cli@v6.45.0+incompatible/ci/cli-v7/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 TARGET_V7=true 16 export GOPATH=$PWD/gopath 17 export PATH=$GOPATH/bin:$PATH 18 19 cd $GOPATH/src/code.cloudfoundry.org/cli 20 21 export LC_ALL="en_US.UTF-8" 22 23 go version 24 25 go get -u github.com/onsi/ginkgo/ginkgo 26 ginkgo version 27 28 # we actually want the grep to exit 1 (i.e., no matches found) here 29 set +e 30 echo -e "\n Checking that packages have been go formatted..." 31 gofmt -l . | grep -v -e ^vendor 32 # if we match anything, we have unformatted files 33 if [[ $? -eq 0 ]]; then 34 echo "Found unlinted files, please run 'make format' and push again." 35 exit 1 36 fi 37 set -e 38 39 make units-full