forked from PukunuiAustralia/moodle-courseformat_grid
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy path.travis.yml
59 lines (54 loc) · 1.66 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
language: php
cache:
directories:
- $HOME/.composer/cache
jobs:
allow_failures:
fast_finish: true
include:
- php: 7.2
env: DB=mysqli
services: mysql
- php: 7.2
env: DB=pgsql
services: postgresql
addons:
postgresql: 9.6
- php: 7.4
env: DB=mysqli
services: mysql
- php: 7.4
env: DB=pgsql
services: postgresql
addons:
postgresql: 9.6
env:
global:
- MOODLE_BRANCH=MOODLE_310_STABLE
- IGNORE_PATHS=amd/src/tooltip.js,test/test_image.php,upgrade/convert_legacy_image.php,yui/src/gridkeys/js/event-nav-keys-debug.js,yui/src/gridkeys/js/event-nav-keys.js,yui/src/gridkeys/scripts/backport.js,yui/gridkeys/gridkeys.js
- IGNORE_NAMES=gf_colourpopup.php,gf_colourpopup.js
before_install:
# This disables XDebug which should speed up the build. One reason to remove this
# line is if you are trying to generate code coverage with PHPUnit.
- phpenv config-rm xdebug.ini
# Currently we are inside of the clone of your repository. We move up two
# directories to build the project.
- cd ../..
# Update Composer.
- composer selfupdate
# Install this project into a directory called "ci".
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
# Update the $PATH so scripts from this project can be called easily.
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
install:
- moodle-plugin-ci install
script:
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd
- moodle-plugin-ci codechecker
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
#Todo: - moodle-plugin-ci behat
#Not critical: - moodle-plugin-ci phpdoc
- moodle-plugin-ci phpunit