github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/.github/workflows/script.d/deps.sh (about)

     1  #!/bin/bash
     2  
     3  set -ex
     4  
     5  # Avoid contaminating the go.mod/go.sum files.
     6  # TODO(kortschak): Remove when golang/go#30515 is resolved
     7  WORK=$(mktemp -d)
     8  pushd $WORK
     9  
    10  # Required for format check.
    11  go get golang.org/x/tools/cmd/goimports
    12  # Required for imports check.
    13  go get gonum.org/v1/tools/cmd/check-imports
    14  # Required for copyright header check.
    15  go get gonum.org/v1/tools/cmd/check-copyright
    16  # Required for coverage.
    17  go get golang.org/x/tools/cmd/cover
    18  go get github.com/mattn/goveralls
    19  # Required for dot parser checks.
    20  go get github.com/goccmack/gocc@66c61e9
    21  # Required for rdf parser checks.
    22  go get golang.org/x/tools/cmd/stringer
    23  
    24  # Clean up.
    25  # TODO(kortschak): Remove when golang/go#30515 is resolved.
    26  popd
    27  rm -rf $WORK