Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged branch docker-mysql-travis into master
- Loading branch information
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
language: crystal | ||
services: | ||
- mysql | ||
- docker | ||
env: | ||
- MYSQL_DOCKER_IMAGE=mysql:5.7 | ||
- MYSQL_DOCKER_IMAGE=mysql:5.6 | ||
- MYSQL_DOCKER_IMAGE=mariadb:latest | ||
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 15 | ||
script: | ||
- crystal spec | ||
- crystal tool format --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters