forked from grappler/ns-theme-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (51 loc) · 1.22 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
dist: trusty
cache:
apt: true
directories:
# Cache directory for older Composer versions.
- $HOME/.composer/cache/files
# Cache directory for more recent Composer versions.
- $HOME/.cache/composer/files
language: php
php:
- 7.0
- 7.1
- 7.3
- nightly
env:
# Highest supported PHPCS version.
- PHPCS_BRANCH="dev-master" LINT=1
# Lowest supported PHPCS version.
- PHPCS_BRANCH="3.3.0"
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
- development
matrix:
fast_finish: true
include:
# Seperate builds for PHP 7.2 with additional checks.
- php: 7.2
env: PHPCS_BRANCH="dev-master"
addons:
apt:
packages:
- libxml2-utils
- php: 7.2
env: PHPCS_BRANCH="3.3.0"
allow_failures:
# Allow failures for unstable builds.
- php: nightly
- php: "7.4snapshot"
before_install:
- phpenv config-rm xdebug.ini
- composer install
script:
# Lint the PHP files against parse errors.
- if find . -path ./vendor -prune -o -name "*.php" -exec php -l {} \; | grep "^[Parse error|Fatal error]"; then exit 1; fi;
# Check the codestyle of the WPThemeReview codebase.
- composer check-cs .