machine:
  ruby:
  services:
    - docker

test:
  override:
    - docker build -t leonstafford/wordpress-static-html-plugin:latest . 
    - docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb
    - docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v $(pwd):/app leonstafford/wordpress-static-html-plugin /bin/bash /post_launch.sh
    - docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:latest
    - /bin/bash run_tests.sh

