diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6335c4a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: go + +go: + - 1.x + - tip + +env: + global: + - STRESS_TEST_DURATION=15s + +script: + - go test -v -race + +matrix: + allow_failures: + - go: tip diff --git a/README.md b/README.md index 5c7bbc5..56ab7b3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/jackc/puddle.svg)](https://travis-ci.org/jackc/puddle) + # Puddle Puddle is a tiny generic resource pool library for Go that uses the standard context library to signal cancellation of acquires. It is designed to contain the minimum functionality a resource pool needs that cannot be implemented without concerrency concerns. For example, a database connection pool may use puddle internally and implement health checks and keep-alive behavior without needing to implement any concurrent code of its own.