Skip to content

Commit

Permalink
Merge pull request #4 from chehsunliu/chehsunliu/circleci
Browse files Browse the repository at this point in the history
Integrate CircleCI
  • Loading branch information
chehsunliu authored Sep 8, 2019
2 parents 993dcb9 + 06f6c20 commit e602358
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Poker

[![GoDoc](https://godoc.org/github.com/chehsunliu/poker?status.svg)](https://godoc.org/github.com/chehsunliu/poker)
[![CircleCI](https://circleci.com/gh/chehsunliu/poker/tree/master.svg?style=shield&circle-token=abebd63b852ce8ecdcdf3f7e597be743d07402e4)](https://circleci.com/gh/chehsunliu/poker/tree/master) [![GoDoc](https://godoc.org/github.com/chehsunliu/poker?status.svg)](https://godoc.org/github.com/chehsunliu/poker) [![codecov](https://codecov.io/gh/chehsunliu/poker/branch/master/graph/badge.svg)](https://codecov.io/gh/chehsunliu/poker)

Poker is ported from the Python library [worldveil/deuces](https://github.com/worldveil/deuces).

Expand Down

0 comments on commit e602358

Please sign in to comment.