Skip to content

Commit

Permalink
use circleci 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Achille Roussel committed Feb 16, 2018
1 parent 112f929 commit 801bc44
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
jobs:
build:
working_directory: /go/src/github.com/segmentio/ksuid
docker:
- image: circleci/golang
steps:
- checkout
- setup_remote_docker: { reusable: true, docker_layer_caching: true }
- run: go get -v -t ./...
- run: go vet ./...
- run: go test -v -race ./...
2 changes: 1 addition & 1 deletion ksuid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func BenchmarkString(b *testing.B) {
k := New()

for i := 0; i != b.N; i++ {
k.String()
_ = k.String()
}
}

Expand Down
2 changes: 1 addition & 1 deletion set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func testCompressedSetNil(t *testing.T) {
set := CompressedSet(nil)

for it := set.Iter(); it.Next(); {
t.Error("too many ids returned by the iterator of a nil compressed set: %s", it.KSUID)
t.Errorf("too many ids returned by the iterator of a nil compressed set: %s", it.KSUID)
}
}

Expand Down

0 comments on commit 801bc44

Please sign in to comment.