Skip to content

Commit

Permalink
rewriting history
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Jacquot committed Jul 26, 2018
0 parents commit 0ad8105
Show file tree
Hide file tree
Showing 71 changed files with 6,466 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bettercodehub.yml
@@ -0,0 +1,8 @@
languages:
- name: go
production:
exclude:
- /implem/mock\.uc/.*
test:
include:
- /implem/mock\.uc/.*
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
go-realworld-clean
vendor/
29 changes: 29 additions & 0 deletions .drone.yml
@@ -0,0 +1,29 @@
workspace:
base: /go
path: src/github.com/err0r500/go-realworld-clean

pipeline:
prerequisites:
image: "golang:latest"
commands:
- go version
- go get -u github.com/golang/dep/cmd/dep
- dep ensure -vendor-only

test:
group: all
image: "golang:latest"
commands:
- go test ./...

build:
group: all
image: "golang:latest"
commands:
- make

linter:
image: "golang:latest"
commands:
- go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
- golangci-lint run -D errcheck
7 changes: 7 additions & 0 deletions .githooks/pre-commit
@@ -0,0 +1,7 @@
#!/bin/sh

echo "[pre-commit hook] Tests"
go test ./...

echo "[pre-commit hook] Linter"
$GOPATH/bin/golangci-lint run -D errcheck
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
.DS_Store
.vs/
.vscode/
.idea
vendor/
go-realworld-clean
15 changes: 15 additions & 0 deletions .travis.yml
@@ -0,0 +1,15 @@
language: go

go:
- 1.10.x
- tip

before_install:
- go get -u github.com/golang/dep/...
- dep ensure

script:
- go test -race -coverprofile=coverage.txt -covermode=atomic

after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 0ad8105

Please sign in to comment.