forked from concretecms/concretecms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (96 loc) · 2.48 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Global/default configuration
dist: trusty
language: php
sudo: false
cache:
npm: true
directories:
- $HOME/.composer/cache
- build/node_modules
notifications:
email: false
# Job list
matrix:
fast_finish: true
allow_failures:
- name: Test with PHP nightly
- name: Test with PHP 7.4
- name: Check PHP coding style
include:
- name: Test with PHP 7.1 (with code coverage)
php: '7.1'
before_script:
- wget --tries=5 https://scrutinizer-ci.com/ocular.phar
- ./.travis/composer-deps.sh
script:
- phpdbg -qrr ./concrete/vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
after_script:
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- name: Check PHP coding style
php: '7.1'
before_script:
- ./.travis/composer-deps.sh
script:
- ./.travis/check-php-coding-style.sh
- name: Check JS coding style
language: node_js
node_js: '10'
before_script:
- ./.travis/setup-build.sh
script:
- pushd build && grunt js:check && popd
- name: Rebuild JS assets
language: node_js
node_js: '10'
before_script:
- ./.travis/setup-build.sh
script:
- ./.travis/rebuild-assets.sh
- name: Test with PHP 5.5
php: '5.5'
before_script:
- ./.travis/composer-deps.sh
script:
- composer test
- name: Test with PHP 5.6
php: '5.6'
before_script:
- ./.travis/composer-deps.sh
script:
- composer test
- name: Test with PHP 7.0
php: '7.0'
before_script:
- ./.travis/composer-deps.sh
script:
- composer test
- name: Test with PHP 7.1 (lowest composer dependencies)
php: '7.1'
before_script:
- COMPOSER_FLAGS='--prefer-lowest' ./.travis/composer-deps.sh
script:
- composer test
- name: Test with PHP 7.2
php: '7.2'
before_script:
- ./.travis/composer-deps.sh
script:
- composer test
- name: Test with PHP 7.3
php: '7.3'
before_script:
- ./.travis/composer-deps.sh
script:
- composer test
- name: Test with PHP 7.4
php: 7.4snapshot
before_script:
- ./.travis/composer-deps.sh
script:
- composer test
- name: Test with PHP nightly
php: nightly
before_script:
- ./.travis/composer-deps.sh
script:
- composer test