github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/cli/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 GOPATH=$PWD/gopath 21 export PATH=$GOPATH/bin:$PATH 22 23 cd $GOPATH/src/code.cloudfoundry.org/cli 24 25 export LC_ALL="en_US.UTF-8" 26 27 go version 28 29 go get -u github.com/onsi/ginkgo/ginkgo 30 ginkgo version 31 32 echo -e "\n Checking that packages have been go formatted..." 33 # we actually want the grep to exit 1 (i.e., no matches found) here 34 set +e 35 # we don't care about format errors in vendor directories 36 unformatted="$(gofmt -l . | grep -v -e ^vendor)" 37 if [[ -n $unformatted ]]; then 38 echo "The following files have not been go formatted:" 39 echo $unformatted 40 echo "Please run 'make format' and push again." 41 exit 1 42 fi 43 set -e 44 45 make units-full