Sha256: 35a4aea44dd965011c57eb96647d5cf816473e0df507dd86f9e80ea8d847b1bd

Contents?: true

Size: 740 Bytes

Versions: 36

Compression:

Stored size: 740 Bytes

Contents

#!/bin/bash
set -e

if [ -z "$(which go)" ]; then
  echo "A local Go installation is required for go development." >&2
  exit 127
fi

# setup test fixtures
BASE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
export GOPATH="$BASE_PATH/test/fixtures/go"
cd $BASE_PATH/test/fixtures/go

if [ "$1" == "-f" ]; then
  find . -not -regex "\.*" \
    -and -not -path "*/src/test*" \
    -and -not -path "*/src/modules_test*" \
    -and -not -path "*/pkg/mod*" \
    -and -not -path "*/pkg" \
    -and -not -path "*/src" \
    -print0 | xargs -0 rm -rf

  if go help mod >/dev/null; then
    go clean -modcache
  fi
fi

(cd src/test && go get)
if go help mod >/dev/null; then
  (cd src/modules_test && GO111MODULE=on go mod download)
fi

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
licensed-2.9.0 script/source-setup/go
licensed-2.8.0 script/source-setup/go
licensed-2.7.0 script/source-setup/go
licensed-2.6.2 script/source-setup/go
licensed-2.6.1 script/source-setup/go
licensed-2.6.0 script/source-setup/go
licensed-2.5.0 script/source-setup/go
licensed-2.4.0 script/source-setup/go
licensed-2.3.2 script/source-setup/go
licensed-2.3.1 script/source-setup/go
licensed-2.3.0 script/source-setup/go
licensed-2.2.0 script/source-setup/go
licensed-2.1.0 script/source-setup/go
licensed-2.0.1 script/source-setup/go
licensed-2.0.0 script/source-setup/go
licensed-1.5.2 script/source-setup/go