Former-commit-id: 7279e710e5
This commit is contained in:
Leon 2017-03-20 18:52:52 +13:00
parent 7860a75c03
commit bacbe35835
2 changed files with 4 additions and 4 deletions

View file

@ -7,9 +7,7 @@ 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
- docker attach plugindevwp sh /post_launch.sh
- 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
- bundle
- /bin/bash run_tests.sh

View file

@ -4,4 +4,6 @@ containerID=$(sudo docker ps | grep plugindevwp | grep -o -e '^\S*')
containerIP=$( sudo docker inspect --format="{{ .NetworkSettings.IPAddress }}" $containerID)
ruby run_tests.rb $containerIP
gem install bundler
bundle install
bundle exec ruby run_tests.rb $containerIP