forked from catalyst/moodle-tool_crawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (68 loc) · 2 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
language: php
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
php:
- 7.1
- 7.2
- 7.3
sudo: required
addons:
firefox: "35.0.1"
postgresql: "9.4"
services:
- mysql
env:
- DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE CI_PLUGIN=2
- DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE CI_PLUGIN=2
matrix:
include:
- php: 7.1
env: DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE CI_PLUGIN=2
- php: 7.1
env: DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE CI_PLUGIN=2
- php: 7.1
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE CI_PLUGIN=2
- php: 7.1
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE CI_PLUGIN=2
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE CI_PLUGIN=2
- php: 7.2
env: DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE CI_PLUGIN=2
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE CI_PLUGIN=2
- php: 7.2
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE CI_PLUGIN=2
- php: 7.3
env: DB=mysqli MOODLE_BRANCH=master CI_PLUGIN=2
before_install:
- sudo hostname short-hostname
- phpenv config-rm xdebug.ini
- cd ../..
- if [ "$CI_PLUGIN" = 2 ]; then
nvm install 8;
nvm use 8;
composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2;
else
composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^1;
fi
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
install:
- moodle-plugin-ci install -vvv
script:
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd
- moodle-plugin-ci codechecker
- moodle-plugin-ci validate
- if [ "$CI_PLUGIN" = 2 ]; then
moodle-plugin-ci savepoints || travis_terminate 1;
moodle-plugin-ci grunt || travis_terminate 1;
else
moodle-plugin-ci csslint || travis_terminate 1;
moodle-plugin-ci jshint || travis_terminate 1;
moodle-plugin-ci shifter || travis_terminate 1;
fi
- moodle-plugin-ci phpunit
- moodle-plugin-ci behat