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-3.1.0 script/source-setup/go
licensed-3.0.1 script/source-setup/go
licensed-3.0.0 script/source-setup/go
licensed-2.15.2 script/source-setup/go
licensed-2.15.1 script/source-setup/go
licensed-2.15.0 script/source-setup/go
licensed-2.14.4 script/source-setup/go
licensed-2.14.3 script/source-setup/go
licensed-2.14.2 script/source-setup/go
licensed-2.14.1 script/source-setup/go
licensed-2.14.0 script/source-setup/go
licensed-2.13.0 script/source-setup/go
licensed-2.12.2 script/source-setup/go
licensed-2.12.1 script/source-setup/go
licensed-2.12.0 script/source-setup/go
licensed-2.11.1 script/source-setup/go
licensed-2.11.0 script/source-setup/go
licensed-2.10.0 script/source-setup/go
licensed-2.9.2 script/source-setup/go
licensed-2.9.1 script/source-setup/go