github.com/willmadison/cli@v6.40.1-0.20181018160101-29d5937903ff+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 # we actually want the grep to exit 1 (i.e., no matches found) here 28 set +e 29 echo -e "\n Checking that packages have been go formatted..." 30 gofmt -l . | grep -v -e ^vendor 31 # if we match anything, we have unformatted files 32 if [[ $? -eq 0 ]]; then 33 echo "Found unlinted files, please run 'make format' and push again." 34 exit 1 35 fi 36 set -e 37 38 make units-full