forked from gjbarnard/moodle-format_topcoll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (48 loc) · 1.27 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
matrix:
allow_failures:
fast_finish: true
include:
- php: 7.0
env: DB=mysqli
- php: 7.0
env: DB=pgsql
addons:
postgresql: 9.4
- php: 7.1
env: DB=mysqli
- php: 7.1
env: DB=pgsql
addons:
postgresql: 9.4
env:
global:
- MOODLE_BRANCH=MOODLE_36_STABLE
- IGNORE_NAMES=tc_colourpopup.php,tc_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 moodlerooms/moodle-plugin-ci ci ^1
# 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 csslint
- moodle-plugin-ci jshint
- moodle-plugin-ci phpunit