1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Switch from govendor to go modules. (#587)

Thanks to @BenoitKnecht for leading the way on this.
This commit is contained in:
Tom Limoncelli
2020-01-18 14:40:28 -05:00
committed by GitHub
parent 31188c3a70
commit 16d0043cce
1554 changed files with 400867 additions and 98222 deletions

31
vendor/github.com/exoscale/egoscale/.codeclimate.yml generated vendored Normal file
View File

@ -0,0 +1,31 @@
version: "2"
checks:
argument-count:
enabled: false
complex-logic:
enabled: false
file-lines:
enabled: false
method-complexity:
enabled: false
method-count:
enabled: false
method-lines:
enabled: false
nested-control-flow:
enabled: false
return-statements:
enabled: false
similar-code:
enabled: false
identical-code:
enabled: false
plugins:
gofmt:
enabled: true
golint:
enabled: true
govet:
enabled: true

6
vendor/github.com/exoscale/egoscale/.gitignore generated vendored Normal file
View File

@ -0,0 +1,6 @@
.token
cloudstack.ini
listApis.json
dist
ops.asc
bash_completion

View File

@ -0,0 +1,4 @@
{
"Disable": ["gocyclo", "goconst", "maligned"],
"Skip": ["vendor"]
}

54
vendor/github.com/exoscale/egoscale/.goreleaser.yml generated vendored Normal file
View File

@ -0,0 +1,54 @@
builds:
- main: ./cmd/cs/
binary: cs
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
- openbsd
- freebsd
goarch:
- amd64
- main: ./cmd/exo/
binary: exo
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
- openbsd
goarch:
- amd64
sign:
cmd: gpg
args: ["-u", "ops@exoscale.ch", "--detach-sign", "${artifact}"]
artifacts: all
archive:
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- CHANGELOG.md
- bash_completion
release:
github:
owner: exoscale
name: egoscale
draft: true
nfpm:
vendor: Exoscale
homepage: https://www.exoscale.com/
description: Tools to manage (almost) everything at Exoscale from the command line.
license: Apache 2.0
formats:
- deb
- rpm

65
vendor/github.com/exoscale/egoscale/.travis.yml generated vendored Normal file
View File

@ -0,0 +1,65 @@
language: go
dist: trusty
sudo: required
go:
- 1.7
- 1.8
- 1.9
- "1.10"
- tip
env:
- DEP_VERSION=0.5.0 HUGO_VERSION=0.45.1 GORELEASER_VERSION=0.82.0 NFPM_VERSION=0.9.3
cache: apt
addons:
apt:
update: true
packages:
- rpm
install: |
curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
chmod +x $GOPATH/bin/dep
wget https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_amd64.deb
sudo dpkg -i goreleaser_amd64.deb
wget https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_amd64.deb
sudo dpkg -i nfpm_amd64.deb
npm i codeclimate-test-reporter
script: |
go test -race -coverprofile=coverage.out -covermode=atomic .
npx codeclimate-test-reporter < coverage.out
jobs:
include:
- stage: goreleaser
go: "1.10"
if: type = push
script: |
cd cmd/cs
dep ensure -v -vendor-only
cd ../exo
dep ensure -v -vendor-only
cd ../..
go run cmd/exo/completion/main.go
goreleaser --snapshot --skip-sign
- stage: gh-pages
go: "1.10"
if: branch = master AND type = push
script: |
cd website
sh prepare.sh
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb
sudo dpkg -i hugo_${HUGO_VERSION}_Linux-64bit.deb
hugo
cd public
git init
git config user.name "TravisCI"
git config user.email "travis@travis-ci.org"
git add .
git commit -m "Deployed to github pages"
git push -f -q "https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}" master:gh-pages