Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added azure-pipelines.yml #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: run test
command: |
go get -v -t -d ./...
GO111MODULE=off go get github.com/mattn/goveralls
go get github.com/mattn/goveralls
go test -v -cover -coverprofile=coverage.out
$GOPATH/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN

Expand All @@ -32,6 +32,6 @@ workflows:
# - build
- test

#notify:
# webhooks:
# - url: https://coveralls.io/webhook?repo_token=${process.env.COVERALLS_REPO_TOKEN}
notify:
webhooks:
- url: https://coveralls.io/webhook?repo_token=${process.env.COVERALLS_REPO_TOKEN}
46 changes: 23 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
---
language: go
go:
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- tip
# language: go
# go:
# - 1.9
# - 1.10
# - 1.11
# - 1.12
# - 1.13
# - 1.14
# - 1.15
# - tip

before_install:
- go get github.com/mattn/goveralls
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/crypto/nacl/secretbox
- go get golang.org/x/tools/cmd/cover
- go get -v -t -d ./...
# before_install:
# - go get github.com/mattn/goveralls
# - go get github.com/axw/gocov/gocov
# - go get github.com/mattn/goveralls
# - go get golang.org/x/crypto/nacl/secretbox
# - go get golang.org/x/tools/cmd/cover
# - go get -v -t -d ./...

install:
#- $HOME/gopath/bin/goveralls -service=travis-ci -repotoken=$COVERALLS_TOKEN
- goveralls -service=travis-ci -repotoken=$COVERALLS_TOKEN
# install:
# #- $HOME/gopath/bin/goveralls -service=travis-ci -repotoken=$COVERALLS_TOKEN
# - goveralls -service=travis-ci -repotoken=$COVERALLS_TOKEN

script:
- go test -v ./...
- go test -bench -v ./...
# script:
# - go test -v ./...
# - go test -bench -v ./...
95 changes: 95 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
trigger:
- master

stages:
- stage: run_checks
displayName: "Check"
dependsOn: []
jobs:
- job: fmt
displayName: "fmt"
pool:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.16"
inputs:
version: "1.16"
- task: Go@0
displayName: "go fmt ./..."
inputs:
command: 'custom'
customCommand: 'fmt'
arguments: './...'
- job: coverage
dependsOn: fmt
displayName: "coverage"
pool:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.16"
inputs:
version: "1.16"
- task: Go@0
displayName: "Generate coverage"
inputs:
command: 'test'
arguments: "-race -coverprofile=coverage.txt -covermode=atomic"
- task: Bash@3
inputs:
targetType: 'inline'
script: 'bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- job: go_unit_tests
dependsOn: coverage
displayName: "unit tests"
strategy:
maxParallel: 1
matrix:
linux_amd64 1.16:
goVersion: '1.16'
imageName: 'ubuntu-latest'
GOOS: linux
GOARCH: amd64
mac_amd64 1.16:
goVersion: '1.16'
imageName: 'macOS-latest'
GOOS: darwin
GOARCH: amd64
windows_amd64 1.16:
goVersion: '1.16'
imageName: 'windows-latest'
GOOS: windows
GOARCH: amd64
linux_amd64 1.9:
goVersion: '1.9'
imageName: 'ubuntu-latest'
GOOS: linux
GOARCH: amd64
mac_amd64 1.9:
goVersion: '1.9'
imageName: 'macOS-latest'
GOOS: darwin
GOARCH: amd64
windows_amd64 1.9:
goVersion: '1.9'
imageName: 'windows-latest'
GOOS: windows
GOARCH: amd64
pool:
vmImage: $(imageName)
steps:
- task: GoTool@0
displayName: "Install Go $(goVersion)"
inputs:
version: $(goVersion)
- task: Go@0
displayName: "go test ./..."
inputs:
command: 'test'
arguments: './...'
env:
go.goos: $(GOOS)
go.goarch: $(GOARCH)