Skip to content

Commit be40c83

Browse files
committed
Travis review
1 parent f944e12 commit be40c83

1 file changed

Lines changed: 36 additions & 21 deletions

File tree

.travis.yml

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,60 @@
1-
sudo: required
2-
1+
# This is the language of our project.
32
language: php
43

5-
dist: xenial
4+
# Installs the updated version of PostgreSQL and extra APT packages.
5+
addons:
6+
postgresql: "9.6"
67

8+
# Ensure DB and docker services are running.
79
services:
810
- mysql
11+
- postgresql
12+
- docker
13+
14+
# Cache Composer's and NPM's caches to speed up build times.
15+
cache:
16+
directories:
17+
- $HOME/.composer/cache
18+
- $HOME/.npm
919

20+
# Determines which versions of PHP to test our project against. Each version
21+
# listed here will create a separate build and run the tests against that
22+
# version of PHP.
1023
php:
11-
- 7.2
24+
- 7.3
25+
- 7.4
1226

27+
# This section sets up the environment variables for the build.
1328
env:
1429
global:
15-
- MOODLE_BRANCH=master
16-
- IGNORE_PATHS=amd/build,amd/src/bootstrap.js
17-
- IGNORE_NAMES=*.txt,moodle.css,moodle-rtl.css,moodle_min.css,editor.css,editor_min.css,Gruntfile.js
30+
- MOODLE_BRANCH=MOODLE_310_STABLE
31+
matrix:
32+
- DB=pgsql
1833
- DB=mysqli
1934

20-
matrix:
21-
- php: 7.2
22-
env: DB=mysqli TASK=PHPUNIT
23-
24-
cache:
25-
directories:
26-
- $HOME/.composer/cache
27-
- $HOME/.npm
28-
35+
# This lists steps that are run before the installation step.
2936
before_install:
37+
- phpenv config-rm xdebug.ini
3038
- cd ../..
31-
- composer selfupdate
32-
- composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1
39+
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
3340
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
3441

42+
# This lists steps that are run for installation and setup.
3543
install:
3644
- moodle-plugin-ci install
3745

46+
# This lists steps that are run for the purposes of testing. Any of
47+
# these steps can be re-ordered or removed to your liking. And of
48+
# course, you can add any of your own custom steps.
3849
script:
3950
- moodle-plugin-ci phplint
4051
- moodle-plugin-ci phpcpd
4152
- moodle-plugin-ci phpmd
4253
- moodle-plugin-ci codechecker
43-
- moodle-plugin-ci csslint
44-
- moodle-plugin-ci jshint
45-
#- moodle-plugin-ci phpunit
54+
# Desactivate this for nom - The error returned is not clear enough
55+
# - moodle-plugin-ci phpdoc
56+
- moodle-plugin-ci validate
57+
- moodle-plugin-ci savepoints
58+
# Desactivate this for nom - Looks like it is trying to scan the vendor and node_modules folders.
59+
# - moodle-plugin-ci mustache
60+
- moodle-plugin-ci grunt

0 commit comments

Comments
 (0)