Skip to content

Commit

Permalink
Merge branch 'master' into issue-55
Browse files Browse the repository at this point in the history
  • Loading branch information
jpahullo authored May 15, 2021
2 parents 8aabfbd + 296465a commit a0ff560
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
40 changes: 27 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
language: bash
language: shell

os: linux
dist: xenial

services: docker
fast_finish: true

env:
# phpunit
# PostgreSQL highest, lowest php supported
# We have set the "phpunit-full" to run against master
- "PHP=7.4 DB=pgsql GIT=master SUITE=phpunit-full"
- "PHP=8.0 DB=pgsql GIT=master SUITE=phpunit-full"
- "PHP=7.3 DB=pgsql GIT=master SUITE=phpunit-full"
# Other dev branches, also "phpunit-full"
- "PHP=7.4 DB=pgsql GIT=MOODLE_311_STABLE SUITE=phpunit-full"
- "PHP=7.3 DB=pgsql GIT=MOODLE_311_STABLE SUITE=phpunit-full"
# Other dev branches, also "phpunit-full" (parallel dev periods)
# Simpler "phpunit" for stables
- "PHP=8.0 DB=pgsql GIT=MOODLE_311_STABLE SUITE=phpunit"
- "PHP=7.3 DB=pgsql GIT=MOODLE_311_STABLE SUITE=phpunit"
- "PHP=7.4 DB=pgsql GIT=v3.10.0 SUITE=phpunit"
- "PHP=7.2 DB=pgsql GIT=v3.10.0 SUITE=phpunit"
- "PHP=7.4 DB=pgsql GIT=v3.9.1 SUITE=phpunit"
Expand All @@ -20,31 +24,35 @@ env:
- "PHP=7.2 DB=pgsql GIT=v3.5.8 SUITE=phpunit"
- "PHP=7.0 DB=pgsql GIT=v3.5.8 SUITE=phpunit"
# Other databases, only highest php supported
- "PHP=8.0 DB=mssql GIT=MOODLE_311_STABLE SUITE=phpunit"
- "PHP=7.4 DB=mssql GIT=v3.10.0 SUITE=phpunit"
- "PHP=7.4 DB=mssql GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.4 DB=mssql GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.2 DB=mssql GIT=v3.5.8 SUITE=phpunit"
- "PHP=8.0 DB=mysql GIT=MOODLE_311_STABLE SUITE=phpunit"
- "PHP=7.4 DB=mysql GIT=v3.10.0 SUITE=phpunit"
- "PHP=7.4 DB=mysql GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.4 DB=mysql GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.2 DB=mysql GIT=v3.5.8 SUITE=phpunit"
- "PHP=8.0 DB=oracle GIT=MOODLE_311_STABLE SUITE=phpunit"
- "PHP=7.4 DB=oracle GIT=v3.10.0 SUITE=phpunit"
- "PHP=7.4 DB=oracle GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.4 DB=oracle GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.2 DB=oracle GIT=v3.5.8 SUITE=phpunit"
# MariaDB, only lowest php supported
- "PHP=7.3 DB=mariadb GIT=MOODLE_311_STABLE SUITE=phpunit"
- "PHP=7.2 DB=mariadb GIT=v3.10.0 SUITE=phpunit"
- "PHP=7.2 DB=mariadb GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.1 DB=mariadb GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.0 DB=mariadb GIT=v3.5.8 SUITE=phpunit"
# behat
# PostgreSQL highest, lowest (2 browsers)
- "PHP=7.4 DB=pgsql GIT=master SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=pgsql GIT=master SUITE=behat BROWSER=firefox"
- "PHP=8.0 DB=pgsql GIT=master SUITE=behat BROWSER=chrome"
- "PHP=8.0 DB=pgsql GIT=master SUITE=behat BROWSER=firefox"
- "PHP=7.3 DB=pgsql GIT=master SUITE=behat BROWSER=chrome"
- "PHP=7.3 DB=pgsql GIT=master SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=pgsql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=pgsql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=firefox"
- "PHP=8.0 DB=pgsql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=chrome"
- "PHP=8.0 DB=pgsql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=firefox"
- "PHP=7.3 DB=pgsql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=chrome"
- "PHP=7.3 DB=pgsql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=pgsql GIT=v3.10.0 SUITE=behat BROWSER=chrome"
Expand All @@ -64,26 +72,32 @@ env:
- "PHP=7.0 DB=pgsql GIT=v3.5.8 SUITE=behat BROWSER=chrome"
- "PHP=7.0 DB=pgsql GIT=v3.5.8 SUITE=behat BROWSER=firefox"
# Other databases, only highest php supported (1 browsers)
- "PHP=8.0 DB=mssql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=mssql GIT=v3.10.0 SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=mssql GIT=v3.9.1 SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=mssql GIT=v3.8.4 SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=mssql GIT=v3.5.8 SUITE=behat BROWSER=chrome"
- "PHP=8.0 DB=mysql GIT=MOODLE_311_STABLE SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=mysql GIT=v3.10.0 SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=mysql GIT=v3.9.1 SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=mysql GIT=v3.8.4 SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=mysql GIT=v3.5.8 SUITE=behat BROWSER=chrome"
- "PHP=8.0 DB=oracle GIT=MOODLE_311_STABLE SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=oracle GIT=v3.10.0 SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=oracle GIT=v3.9.1 SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=oracle GIT=v3.8.4 SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=oracle GIT=v3.5.8 SUITE=behat BROWSER=chrome"
# MariaDB, only lowest php supported (1 browsers)
- "PHP=7.3 DB=mariadb GIT=MOODLE_311_STABLE SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=mariadb GIT=v3.10.0 SUITE=behat BROWSER=chrome"
- "PHP=7.2 DB=mariadb GIT=v3.9.1 SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=mariadb GIT=v3.8.4 SUITE=behat BROWSER=chrome"
- "PHP=7.0 DB=mariadb GIT=v3.5.8 SUITE=behat BROWSER=firefox"
# Mobile app
- "PHP=7.4 DB=pgsql GIT=master SUITE=behat-app-development BROWSER=chrome APP_VERSION=3.9.0 APP_PATH=$HOME/app"
- "PHP=7.4 DB=pgsql GIT=master SUITE=behat-app BROWSER=chrome APP_VERSION=3.9.0"
# Mobile app, highest, lowest
- "PHP=8.0 DB=pgsql GIT=master SUITE=behat-app-development BROWSER=chrome APP_VERSION=3.9.0 APP_PATH=$HOME/app"
- "PHP=8.0 DB=pgsql GIT=master SUITE=behat-app BROWSER=chrome APP_VERSION=3.9.0"
- "PHP=7.3 DB=pgsql GIT=master SUITE=behat-app-development BROWSER=chrome APP_VERSION=3.9.0 APP_PATH=$HOME/app"
- "PHP=7.3 DB=pgsql GIT=master SUITE=behat-app BROWSER=chrome APP_VERSION=3.9.0"
install:
- git clone --branch $GIT --depth 1 git://github.com/moodle/moodle $HOME/moodle
- cp config.docker-template.php $HOME/moodle/config.php
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Notes:

```bash
# Initialize Moodle database for manual testing
bin/moodle-docker-compose exec webserver php admin/cli/install_database.php --agree-license --fullname="Docker moodle" --shortname="docker_moodle" --adminpass="test" --adminemail="[email protected]"
bin/moodle-docker-compose exec webserver php admin/cli/install_database.php --agree-license --fullname="Docker moodle" --shortname="docker_moodle" --summary="Docker moodle site" --adminpass="test" --adminemail="[email protected]"
```

Notes:
Expand Down
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"

if [ "$SUITE" = "phpunit" ];
then
testcmd="bin/moodle-docker-compose exec -T webserver vendor/bin/phpunit core_dml_testcase lib/dml/tests/dml_test.php"
testcmd="bin/moodle-docker-compose exec -T webserver vendor/bin/phpunit --filter core_dml_testcase"
elif [ "$SUITE" = "behat" ];
then
testcmd="bin/moodle-docker-compose exec -T webserver php admin/tool/behat/cli/run.php --tags=@auth_manual"
Expand Down

0 comments on commit a0ff560

Please sign in to comment.