Skip to content

Commit

Permalink
test over multiple mysql versions using docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff committed Sep 6, 2016
1 parent 45d3cb4 commit 731f0dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
@@ -1,6 +1,14 @@
language: crystal
services:
- mysql
- docker
env:
- MYSQL_DOCKER_IMAGE=mysql:5.7
- MYSQL_DOCKER_IMAGE=mysql:5.6
before_install:
- docker run -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 -d ${MYSQL_DOCKER_IMAGE}
- docker ps -a # log docker image
- while ! echo exit | nc localhost 3306; do sleep 5; done # wait mysql to start accepting connections
- sleep 10
script:
- crystal spec
- crystal tool format --check

0 comments on commit 731f0dd

Please sign in to comment.