forked from moodlehq/moodle-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 1.15 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
language: bash
services: docker
fast_finish: true
env:
- "PHP=7.1 DB=pgsql SUITE=phpunit-full"
- "PHP=7.0 DB=pgsql SUITE=phpunit"
- "PHP=5.6 DB=pgsql SUITE=phpunit"
- "PHP=7.1 DB=oracle SUITE=phpunit"
- "PHP=5.6 DB=oracle SUITE=phpunit"
- "PHP=7.1 DB=mssql SUITE=phpunit"
- "PHP=5.6 DB=mssql SUITE=phpunit"
- "PHP=7.1 DB=mysql SUITE=phpunit"
- "PHP=5.6 DB=mariadb SUITE=phpunit"
- "PHP=7.0 DB=pgsql SUITE=behat BROWSER=firefox"
- "PHP=7.0 DB=pgsql SUITE=behat BROWSER=chrome"
- "PHP=7.0 DB=oracle SUITE=behat BROWSER=firefox"
- "PHP=7.0 DB=mssql SUITE=behat BROWSER=firefox"
- "PHP=7.0 DB=mysql SUITE=behat BROWSER=firefox"
- "PHP=7.0 DB=mariadb SUITE=behat BROWSER=firefox"
install:
- git clone --branch v3.3.5 --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
before_script:
- tests/setup.sh
script:
- tests/test.sh
after_script:
- bin/moodle-docker-compose down