Skip to content

Commit e602358

Browse files
authored
Merge pull request #4 from chehsunliu/chehsunliu/circleci
Integrate CircleCI
2 parents 993dcb9 + 06f6c20 commit e602358

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

.circleci/config.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
3+
jobs:
4+
test:
5+
docker:
6+
- image: circleci/golang:1.13
7+
steps:
8+
- checkout
9+
- run:
10+
name: Run the testing
11+
command: make test
12+
- run:
13+
name: Upload coverage data to Codecov
14+
command: bash <(curl -s https://codecov.io/bash)
15+
16+
workflows:
17+
version: 2
18+
commit-pipeline:
19+
jobs:
20+
- test

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.coverprofile
2-
.coverprofile.html
1+
coverage.txt
2+
coverage.html
33

44
# Created by https://www.gitignore.io/api/macos,windows,linux,vim,jetbrains
55
# Edit at https://www.gitignore.io/?templates=macos,windows,linux,vim,jetbrains

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: test
22
test:
3-
go test -coverprofile .coverprofile -timeout 10m ./...
4-
go tool cover -html .coverprofile -o .coverprofile.html
3+
go test -race -coverprofile=coverage.txt -covermode=atomic -timeout=10m ./...
4+
go tool cover -html coverage.txt -o coverage.html
55

66
.PHONY: benchmark
77
benchmark:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Poker
22

3-
[![GoDoc](https://godoc.org/github.com/chehsunliu/poker?status.svg)](https://godoc.org/github.com/chehsunliu/poker)
3+
[![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)
44

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

0 commit comments

Comments
 (0)