@@ -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.
@@ -36,19 +30,20 @@ cache:
3630# listed here will create a separate build and run the tests against that
3731# version of PHP.
3832php :
39- - 7.0
4033 - 7.1
34+ - 7.2
35+ - 7.3
4136
4237# This section sets up the environment variables for the build.
4338env :
4439 global :
4540# This line determines which version branch of Moodle to test against.
46- - MOODLE_BRANCH=MOODLE_35_STABLE
41+ - MOODLE_BRANCH=MOODLE_38_STABLE
4742# This matrix is used for testing against multiple databases. So for
4843# each version of PHP being tested, one build will be created for each
49- # database listed here. EG: for PHP 5.6 , one build will be created
50- # using PHP 5.6 and pgsql. In addition, another build will be created
51- # using PHP 5.6 and mysqli.
44+ # database listed here. EG: for PHP 7.1 , one build will be created
45+ # using PHP 7.1 and pgsql. In addition, another build will be created
46+ # using PHP 7.1 and mysqli.
5247 matrix :
5348 - DB=pgsql
5449 - DB=mysqli
5752# (git://github.com/moodle/moodle.git is used by default):
5853# - MOODLE_REPO=git://github.com/username/moodle.git
5954
60- # This lists steps that are run before the installation step.
55+ # This lists steps that are run before the installation step.
6156before_install :
6257# This disables XDebug which should speed up the build.
6358 - phpenv config-rm xdebug.ini
@@ -71,6 +66,10 @@ before_install:
7166 - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
7267# Update the $PATH so scripts from this project can be called easily.
7368 - 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
7473
7574# This lists steps that are run for installation and setup.
7675install :
@@ -115,19 +114,23 @@ script:
115114# This step runs Grunt tasks on the plugin. By default, it tries to run
116115# tasks relevant to your plugin and Moodle version, but you can run
117116# specific tasks by passing them as options,
118- # EG: moodle-plugin-ci grunt -t task1 -t task2
117+ # EG: moodle-plugin-ci grunt -t task1 -t task2
119118 - moodle-plugin-ci grunt
120119# This step runs the PHPUnit tests of your plugin. If your plugin has
121120# PHPUnit tests, then it is highly recommended that you keep this step.
122121 - moodle-plugin-ci phpunit
123122# This step runs the Behat tests of your plugin. If your plugin has
124123# Behat tests, then it is highly recommended that you keep this step.
125- # There are two important options that you may want to use:
124+ # There are few important options that you may want to use:
126125# - The auto rerun option allows you to rerun failures X number of times,
127126# default is 2, EG usage: --auto-rerun 3
128127# - The dump option allows you to print the failure HTML to the console,
129128# handy for debugging, EG usage: --dump
130129# - The suite option allows you to set the theme to use for behat test. If
131130# 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.
132135 - moodle-plugin-ci behat
133136` ` `
0 commit comments