This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
forked from moodlehq/moodle-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (94 loc) · 4.93 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: bash
services: docker
fast_finish: true
env:
# Oracle jobs have been removed because there aren't public images anymore.
# 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=7.2 DB=pgsql GIT=master SUITE=phpunit-full"
# Other dev branches, also "phpunit-full"
- "PHP=7.4 DB=pgsql GIT=MOODLE_310_STABLE SUITE=phpunit-full"
- "PHP=7.2 DB=pgsql GIT=MOODLE_310_STABLE SUITE=phpunit-full"
# Simpler "phpunit" for stables
- "PHP=7.4 DB=pgsql GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.2 DB=pgsql GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.4 DB=pgsql GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.1 DB=pgsql GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.3 DB=pgsql GIT=v3.7.2 SUITE=phpunit"
- "PHP=7.1 DB=pgsql GIT=v3.7.2 SUITE=phpunit"
- "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=7.4 DB=mssql GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.4 DB=mssql GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.3 DB=mssql GIT=v3.7.2 SUITE=phpunit"
- "PHP=7.2 DB=mssql GIT=v3.5.8 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.3 DB=mysql GIT=v3.7.2 SUITE=phpunit"
- "PHP=7.2 DB=mysql GIT=v3.5.8 SUITE=phpunit"
# MariaDB, only lowest php supported
- "PHP=7.2 DB=mariadb GIT=v3.9.1 SUITE=phpunit"
- "PHP=7.1 DB=mariadb GIT=v3.8.4 SUITE=phpunit"
- "PHP=7.1 DB=mariadb GIT=v3.7.2 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=7.2 DB=pgsql GIT=master SUITE=behat BROWSER=chrome"
- "PHP=7.2 DB=pgsql GIT=master SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=pgsql GIT=MOODLE_310_STABLE SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=pgsql GIT=MOODLE_310_STABLE SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=pgsql GIT=MOODLE_310_STABLE SUITE=behat BROWSER=chrome"
- "PHP=7.2 DB=pgsql GIT=MOODLE_310_STABLE SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=pgsql GIT=v3.9.1 SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=pgsql GIT=v3.9.1 SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=pgsql GIT=v3.9.1 SUITE=behat BROWSER=chrome"
- "PHP=7.2 DB=pgsql GIT=v3.9.1 SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=pgsql GIT=v3.8.4 SUITE=behat BROWSER=chrome"
- "PHP=7.4 DB=pgsql GIT=v3.8.4 SUITE=behat BROWSER=firefox"
- "PHP=7.1 DB=pgsql GIT=v3.8.4 SUITE=behat BROWSER=chrome"
- "PHP=7.1 DB=pgsql GIT=v3.8.4 SUITE=behat BROWSER=firefox"
- "PHP=7.3 DB=pgsql GIT=v3.7.2 SUITE=behat BROWSER=chrome"
- "PHP=7.3 DB=pgsql GIT=v3.7.2 SUITE=behat BROWSER=firefox"
- "PHP=7.1 DB=pgsql GIT=v3.7.2 SUITE=behat BROWSER=chrome"
- "PHP=7.1 DB=pgsql GIT=v3.7.2 SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=pgsql GIT=v3.5.8 SUITE=behat BROWSER=chrome"
- "PHP=7.2 DB=pgsql GIT=v3.5.8 SUITE=behat BROWSER=firefox"
- "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=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.3 DB=mssql GIT=v3.7.2 SUITE=behat BROWSER=chrome"
- "PHP=7.2 DB=mssql GIT=v3.5.8 SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=mysql GIT=v3.9.1 SUITE=behat BROWSER=firefox"
- "PHP=7.4 DB=mysql GIT=v3.8.4 SUITE=behat BROWSER=chrome"
- "PHP=7.3 DB=mysql GIT=v3.7.2 SUITE=behat BROWSER=firefox"
- "PHP=7.2 DB=mysql GIT=v3.5.8 SUITE=behat BROWSER=chrome"
# MariaDB, only lowest php supported (1 browsers)
- "PHP=7.2 DB=mariadb GIT=v3.9.1 SUITE=behat BROWSER=chrome"
- "PHP=7.2 DB=mariadb GIT=v3.8.4 SUITE=behat BROWSER=firefox"
- "PHP=7.1 DB=mariadb GIT=v3.7.2 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"
install:
- git clone --branch $GIT --depth 1 git://github.com/moodle/moodle $HOME/moodle
- cp config.docker-template.php $HOME/moodle/config.php
- export MOODLE_DOCKER_DB=$DB
- export MOODLE_DOCKER_BROWSER=$BROWSER
- export MOODLE_DOCKER_WWWROOT="$HOME/moodle"
- export MOODLE_DOCKER_PHP_VERSION=$PHP
- export MOODLE_DOCKER_APP_PATH=$APP_PATH
- export MOODLE_DOCKER_APP_VERSION=$APP_VERSION
before_script:
- tests/setup.sh
script:
- tests/test.sh
after_script:
- bin/moodle-docker-compose down