-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from berty/dev/moul/circle
feat: setup circle ci
- Loading branch information
Showing
7 changed files
with
66 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
orbs: | ||
codecov: codecov/[email protected] | ||
moul: moul/[email protected] | ||
tools: gotest/[email protected] | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.12 | ||
#working_directory: /go/src/berty.tech/CHANGE_ME | ||
- image: circleci/golang:1.13 | ||
working_directory: /go/src/berty.tech/yolo | ||
environment: | ||
GO111MODULE: "on" | ||
#GOPROXY: "https://goproxy.io" | ||
steps: | ||
- checkout | ||
#- restore_cache: | ||
# keys: | ||
# - go-mod-v1-{{ arch }}-{{ checksum "go.sum" }} | ||
# - go-mod-v1-{{ arch }}- | ||
#- run: go mod download | ||
#- run: make test | ||
#- run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- v1.17.1 | ||
#- run: PATH=$PATH:./bin make lint | ||
#- save_cache: | ||
# key: go-mod-v1-{{ arch }}-{{ checksum "go.sum" }} | ||
# paths: | ||
# - /go/pkg/mod | ||
- tools/mod-download | ||
- tools/mod-tidy-check | ||
- run: make test | ||
- run: make install | ||
- moul/install_golangci-lint | ||
- run: make lint | ||
- codecov/upload: | ||
file: coverage.txt | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
run: | ||
deadline: 1m | ||
tests: false | ||
skip-files: | ||
- "test/.*" | ||
- "test/.*/.*" | ||
|
||
linters-settings: | ||
golint: | ||
min-confidence: 0 | ||
maligned: | ||
suggest-new: true | ||
goconst: | ||
min-len: 5 | ||
min-occurrences: 4 | ||
misspell: | ||
locale: US | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- goconst | ||
- misspell | ||
- deadcode | ||
- misspell | ||
- structcheck | ||
- errcheck | ||
- unused | ||
- varcheck | ||
- staticcheck | ||
- unconvert | ||
- gofmt | ||
#- goimports # disabling goimports while we can't configure it to ignore vendors (github.com/whyrusleeping/go-logging seems to be badly formated) | ||
- golint | ||
- ineffassign |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters