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