forked from catalyst/moodle-tool_trigger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (81 loc) · 2.29 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
language: php
# We use trusty as currently there is an issue with java and moodle-plugin-ci mustache linting which
# causes causes tests to fail on xenial and bionic. (See https://github.com/blackboard-open-source/moodle-plugin-ci/issues/91).
dist: trusty
addons:
firefox: latest
chrome: stable
postgresql: "9.6"
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
services:
- mysql
php:
- 7.0
- 7.1
- 7.2
- 7.3
env:
global:
- MOODLE_BRANCH=master
- IGNORE_PATHS=tests/fixtures
matrix:
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
- DB=pgsql MOODLE_BRANCH=master
- DB=mysqli MOODLE_BRANCH=master
dist: trusty
matrix:
exclude:
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=master
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=master
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.3
env: DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
- php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
- php: 7.3
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
before_install:
- sudo apt-get update
- phpenv config-rm xdebug.ini
- nvm install 8.9
- nvm use 8.9
- cd ../..
- composer selfupdate
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
- 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 codechecker
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
- moodle-plugin-ci mustache
- moodle-plugin-ci grunt
- moodle-plugin-ci phpunit
- moodle-plugin-ci behat