github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/ci/cli-v7/tasks/units-linux.yml (about) 1 --- 2 platform: linux 3 4 image_resource: 5 type: docker-image 6 source: 7 repository: cfcli/cli-base 8 9 inputs: 10 - name: cli 11 path: gopath/src/code.cloudfoundry.org/cli 12 13 run: 14 path: bash 15 args: 16 - -c 17 - | 18 set -e 19 20 export TARGET_V7=true 21 export GOPATH=$PWD/gopath 22 export PATH=$GOPATH/bin:$PATH 23 24 cd $GOPATH/src/code.cloudfoundry.org/cli 25 26 export LC_ALL="en_US.UTF-8" 27 28 go version 29 30 go get -u github.com/onsi/ginkgo/ginkgo 31 ginkgo version 32 33 # we actually want the grep to exit 1 (i.e., no matches found) here 34 set +e 35 echo -e "\n Checking that packages have been go formatted..." 36 gofmt -l . | grep -v -e ^vendor 37 # if we match anything, we have unformatted files 38 if [[ $? -eq 0 ]]; then 39 echo "Found unlinted files, please run 'make format' and push again." 40 exit 1 41 fi 42 set -e 43 44 make units-full