mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-24 14:05:26 +08:00
* Update Exoscale provider * Update vendor folder for exoscale/egoscale v0.23.0 * Fix typos and SRV parsing * Add . at the end of SRV records for exoscale
51 lines
1 KiB
YAML
51 lines
1 KiB
YAML
language: go
|
|
|
|
dist: xenial
|
|
sudo: required
|
|
|
|
go:
|
|
- "1.7.x"
|
|
- "1.8.x"
|
|
- "1.9.x"
|
|
- "1.10.x"
|
|
- "1.11.x"
|
|
- "1.12.x"
|
|
- "1.13.x"
|
|
- tip
|
|
|
|
env:
|
|
- GOLANGCI_LINT_VERSION=1.17.1 GO111MODULES=on
|
|
|
|
cache: apt
|
|
|
|
addons:
|
|
apt:
|
|
update: true
|
|
packages:
|
|
- rpm
|
|
|
|
install:
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v${GOLANGCI_LINT_VERSION}
|
|
- npm i codeclimate-test-reporter
|
|
- |
|
|
[ "$(echo "$TRAVIS_GO_VERSION" | awk -F. '{print $2}')" -ge "11" ] && go mod vendor || go get -u github.com/gofrs/uuid
|
|
|
|
before_script:
|
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
- chmod +x ./cc-test-reporter
|
|
- ./cc-test-reporter before-build
|
|
|
|
script:
|
|
- go test -race -coverprofile=c.out -covermode=atomic .
|
|
|
|
after_script:
|
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
|
|
jobs:
|
|
include:
|
|
- stage: golangci-lint
|
|
go: 1.12.x
|
|
if: type = pull_request
|
|
script:
|
|
- go get -u github.com/gofrs/uuid
|
|
- golangci-lint run .
|