Skip to content

Commit

Permalink
Add the CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
chehsunliu committed Sep 8, 2019
1 parent 993dcb9 commit 75a323f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

jobs:
test:
docker:
- image: circleci/golang:1.13
steps:
- checkout
- run:
name: Run the testing
command: make test
- run:
name: Upload coverage data to Codecov
command: bash <(curl -s https://codecov.io/bash)

workflows:
version: 2
commit-pipeline:
jobs:
- test
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.coverprofile
.coverprofile.html
coverage.txt
coverage.html

# Created by https://www.gitignore.io/api/macos,windows,linux,vim,jetbrains
# Edit at https://www.gitignore.io/?templates=macos,windows,linux,vim,jetbrains
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: test
test:
go test -coverprofile .coverprofile -timeout 10m ./...
go tool cover -html .coverprofile -o .coverprofile.html
go test -race -coverprofile=coverage.txt -covermode=atomic -timeout=10m ./...
go tool cover -html coverage.txt -o coverage.html

.PHONY: benchmark
benchmark:
Expand Down

0 comments on commit 75a323f

Please sign in to comment.