@@ -11,14 +11,8 @@ see [Travis CI's documentation](http://docs.travis-ci.com/user/getting-started/)
1111# This is the language of our project.
1212language : php
1313
14- # If using Behat, then this should be true due to an issue with Travis CI.
15- # If not using Behat, recommended to use `sudo: false` as it is faster.
16- sudo : true
17-
18- # Installs the required version of Firefox for Behat, an updated version
19- # of PostgreSQL and extra APT packages.
14+ # Installs the updated version of PostgreSQL and extra APT packages.
2015addons :
21- firefox : " 47.0.1"
2216 postgresql : " 9.4"
2317
2418# Ensure DB services are running.
@@ -72,6 +66,10 @@ before_install:
7266 - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
7367# Update the $PATH so scripts from this project can be called easily.
7468 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
69+ # Start Selenium Standalone server with Chrome/Firefox installed. If you
70+ # prefer to run Behat tests with Chrome profile (see Behat step details below),
71+ # use selenium/standalone-chrome:3 image instead.
72+ - docker run -d -p 127.0.0.1:4444:4444 --net=host -v /dev/shm:/dev/shm selenium/standalone-firefox:3
7573
7674# This lists steps that are run for installation and setup.
7775install :
@@ -123,12 +121,16 @@ script:
123121 - moodle-plugin-ci phpunit
124122# This step runs the Behat tests of your plugin. If your plugin has
125123# Behat tests, then it is highly recommended that you keep this step.
126- # There are two important options that you may want to use:
124+ # There are few important options that you may want to use:
127125# - The auto rerun option allows you to rerun failures X number of times,
128126# default is 2, EG usage: --auto-rerun 3
129127# - The dump option allows you to print the failure HTML to the console,
130128# handy for debugging, EG usage: --dump
131129# - The suite option allows you to set the theme to use for behat test. If
132130# not specified, the default theme is used, EG usage: --suite boost
131+ # - The profile option allows you to set the browser driver to use,
132+ # default is Firefox. If you need Chrome, set '--profile chrome' and make
133+ # sure that you are using correct Selenium server docker image in
134+ # before_install section above.
133135 - moodle-plugin-ci behat
134136` ` `
0 commit comments