-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.travis.yml
More file actions
107 lines (97 loc) · 3.37 KB
/
.travis.yml
File metadata and controls
107 lines (97 loc) · 3.37 KB
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
# Setup caching
cache:
directories:
- $HOME/.cache/composer/files
- $HOME/.npm
- node_modules
branches:
only:
- master
# Test in modern and recent versions of PHP & Node.
# Run each code style tool in containers specific to that tool's language.
jobs:
include:
- language: php
php: 8.1
install:
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
- composer install --ignore-platform-reqs
script:
# For PHP 8.1+, we need to ignore the config file so that PHPUnit 7 doesn't try to read it and cause an error.
# Instead, we pass all required settings as part of the phpunit command.
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/AllSniffs.php
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/FixtureTests.php
- language: php
php: 8.2
install:
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
- composer install --ignore-platform-reqs
script:
# For PHP 8.1+, we need to ignore the config file so that PHPUnit 7 doesn't try to read it and cause an error.
# Instead, we pass all required settings as part of the phpunit command.
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/AllSniffs.php
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/FixtureTests.php
- language: php
php: 8.3
install:
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
- composer install --ignore-platform-reqs
script:
# For PHP 8.1+, we need to ignore the config file so that PHPUnit 7 doesn't try to read it and cause an error.
# Instead, we pass all required settings as part of the phpunit command.
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/AllSniffs.php
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/FixtureTests.php
- language: node_js
node_js: 20
install:
- npm ci
- cd packages/eslint-config-humanmade
- npm ci
- cd ../..
script:
- npm run test:eslint
- language: node_js
node_js: 20
install:
- npm ci
- cd packages/stylelint-config
- npm ci
- cd ../..
script:
- npm run test:stylelint
- language: node_js
node_js: 22
install:
- npm ci
- cd packages/eslint-config-humanmade
- npm ci
- cd ../..
script:
- npm run test:eslint
- language: node_js
node_js: 22
install:
- npm ci
- cd packages/stylelint-config
- npm ci
- cd ../..
script:
- npm run test:stylelint
- language: node_js
node_js: 24
install:
- npm ci
- cd packages/eslint-config-humanmade
- npm ci
- cd ../..
script:
- npm run test:eslint
- language: node_js
node_js: 24
install:
- npm ci
- cd packages/stylelint-config
- npm ci
- cd ../..
script:
- npm run test:stylelint