зеркало из https://github.com/Azure/buffalo-azure.git
remove install.sh and add travis go mod env and mod tidy
This commit is contained in:
Родитель
01fdb9d821
Коммит
98839d1c53
|
@ -15,4 +15,5 @@
|
|||
|
||||
vendor/
|
||||
|
||||
.idea/
|
||||
.idea/
|
||||
|
||||
|
|
|
@ -15,8 +15,11 @@ install:
|
|||
script:
|
||||
- go generate ./...
|
||||
- test -z "$(git diff ./generators/eventgrid/static_templates.go | tee /dev/stderr)"
|
||||
- go build ./...
|
||||
- go build all
|
||||
- go test -race ./...
|
||||
- test -z "$(go fmt ./... | tee /dev/stderr)"
|
||||
- test -z "$(golint $(go list ./...) | tee /dev/stderr)"
|
||||
- go vet ./...
|
||||
|
||||
env:
|
||||
- GO111MODULE=on
|
||||
|
|
|
@ -48,8 +48,10 @@ This is an extension, so before you install Buffalo-Azure, make sure you've alre
|
|||
|
||||
##### go get
|
||||
|
||||
The way to get started is to use `go get`. This project support Go modules when using Go 1.11 and above.
|
||||
For more information see [Go modules wiki](https://github.com/golang/go/wiki/Modules).
|
||||
Use `go get` to acquire and install from source. Versions of the project after `v0.2.0` use
|
||||
Go modules exclusively, which means you'll need Go 1.11 or later.
|
||||
|
||||
For more information on modules, see the [Go modules wiki](https://github.com/golang/go/wiki/Modules).
|
||||
|
||||
``` bash
|
||||
go get -u github.com/Azure/buffalo-azure
|
||||
|
|
1
go.sum
1
go.sum
|
@ -1,6 +1,5 @@
|
|||
github.com/Azure/azure-sdk-for-go v18.0.0+incompatible h1:PD98+de2PG0lTTSKFJRkMO1ieGfjEuSrQYqad21ATzY=
|
||||
github.com/Azure/azure-sdk-for-go v18.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/buffalo-azure v0.1.6/go.mod h1:uZXNJaEeLQzq6xjCD0Pyz5PEVx3Gd1lHDwcXbpEbUTg=
|
||||
github.com/Azure/go-autorest v10.12.0+incompatible h1:6YphwUK+oXbzvCc1fd5VrnxCekwzDkpA7gUEbci2MvI=
|
||||
github.com/Azure/go-autorest v10.12.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
|
||||
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
||||
|
|
23
install.sh
23
install.sh
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if test -z $GOPATH; then
|
||||
export GOPATH=$HOME/go
|
||||
fi
|
||||
|
||||
mkdir -p $GOPATH/src/github.com/Azure/buffalo-azure
|
||||
cd $GOPATH/src/github.com/Azure/buffalo-azure
|
||||
git clone https://github.com/Azure/buffalo-azure.git . -q
|
||||
|
||||
export head=$(git rev-parse HEAD)
|
||||
export relTag=$(git tag --list --contains "$head" v*)
|
||||
|
||||
if test -z $relTag; then
|
||||
export relTag="$head"
|
||||
fi
|
||||
|
||||
dep ensure
|
||||
go install --ldflags "-X github.com/Azure/buffalo-azure/cmd.version=$relTag"
|
||||
|
||||
echo "Installed Buffalo-Azure Version $relTag"
|
|
@ -1,7 +1,6 @@
|
|||
module github.com/azure/buffalo-azure/sdk
|
||||
module github.com/Azure/buffalo-azure/sdk
|
||||
|
||||
require (
|
||||
github.com/Azure/buffalo-azure v0.1.6
|
||||
github.com/cockroachdb/apd v1.1.0 // indirect
|
||||
github.com/cockroachdb/cockroach-go v0.0.0-20181001143604-e0a95dfd547c // indirect
|
||||
github.com/gobuffalo/buffalo v0.13.0
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
github.com/Azure/buffalo-azure v0.1.6 h1:7sgryCXSMLgv6ZctJuRL6rmBNbG4YiheK9k76t8XGes=
|
||||
github.com/Azure/buffalo-azure v0.1.6/go.mod h1:uZXNJaEeLQzq6xjCD0Pyz5PEVx3Gd1lHDwcXbpEbUTg=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
|
||||
github.com/ajg/form v0.0.0-20160822230020-523a5da1a92f h1:zvClvFQwU++UpIUBGC8YmDlfhUrweEy1R1Fj1gu5iIM=
|
||||
|
|
Загрузка…
Ссылка в новой задаче