-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
68 lines (66 loc) · 1.92 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
# 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: 7.2
install:
- composer install
script:
- vendor/bin/phpunit
- language: php
php: 7.3
install:
- composer install
script:
- vendor/bin/phpunit
- language: php
php: 7.4
install:
- composer install
script:
- vendor/bin/phpunit
- language: php
php: 8.0
install:
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
- composer install --ignore-platform-reqs
script:
- vendor/bin/phpunit
- 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: node_js
node_js: 16
install:
- npm install
- cd packages/eslint-config-humanmade
- npm install --legacy-peer-deps
- cd ../..
script:
- npm run test:eslint
- language: node_js
node_js: 16
install:
- npm install
- cd packages/stylelint-config
- npm install
- cd ../..
script:
- npm run test:stylelint