-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
45 lines (40 loc) · 887 Bytes
/
.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
# https://docs.travis-ci.com/user/reference/overview/#linux
dist: bionic
language: php
cache:
directories:
- "$HOME/.composer/cache"
php:
# TODO Add unit tests with Codeception: https://github.com/lucatume/wp-browser
# - "7.0"
# - "7.1"
# - "7.2"
- "7.3"
# - "7.4"
#jobs:
# include:
# - dist: trusty
# php: "5.4"
# - dist: trusty
# php: "5.6"
before_install:
- |
if [ "$(phpenv version-name)" != 7.4 ]; then
phpenv config-rm xdebug.ini
fi
- |
composer validate --no-interaction --strict
install:
- |
composer install --no-interaction --no-suggest
- |
composer outdated --no-interaction --direct
script:
- |
find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l
- |
vendor/bin/phpstan analyze --no-progress --debug
- |
vendor/bin/phpcs
- |
echo "TODO: Lint JavaScript, CSS and SVG files."