Im trying to have travis run dredd tests during its build process. I realized that I will need to run mariaDB as part of the process. I am unsure how to create a table or insert sample data prior to dredd tests being run. I have added mariadb as an addon to the travis.yml and thats about it. Also to make dredd run in travis I will be using docker-compose as well.
EDIT:
I have my travis.yml running
docker-compose up -d
sleep 30
BUNCH OF SQL COMMANDS to create tables and insert data
dredd
But at this point my dredd.yml has
server: docker-compose up
so i seem to call docker-compose first in travis and run mysql commands and then call it again right before dredd. I believe I should only need to do it right before the dredd tests in a hook
Figured it out,
In my travis.yml I:
docker-compose up -d
sleep 30
~~RUN SQL COMMANDS TO CREATE TABLES/ADD DATA~~
docker-compose stop
sleep 5 (to allow for compose to start up)
dredd
Then in my dredd.yml:
server: docker-compose up
server-wait: 60