From fce9fbe2b4dc27c225f896a0d64d0e3ad739ff4f Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Wed, 26 Dec 2018 17:24:32 -0600 Subject: [PATCH] Add Travis CI --- .travis.yml | 16 ++++++++++++++++ README.md | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 .travis.yml 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.