Add docker based integration test suite.

This simply pulls and runs postgres against a number of versions and checks
that we can successfully connect to it.
This commit is contained in:
Will Rouesnel
2016-05-28 17:03:38 +10:00
parent 86caf395f6
commit 8cca2a59a5
4 changed files with 78 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ go:
script:
- make all
- make docker
- make test-integration
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then docker login -e $DOCKER_EMAIL -u $DOCKER_USER
-p $DOCKER_PASS ; docker push wrouesnel/postgres_exporter ; fi