forked from grappler/ns-theme-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (40 loc) · 938 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
46
47
48
49
50
51
dist: trusty
cache:
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.2
- "7.4snapshot"
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
- development
matrix:
fast_finish: true
include:
- php: 7.3
env: PHPCS=1
allow_failures:
# Allow failures for unstable builds.
- php: "7.4snapshot"
before_install:
- phpenv config-rm xdebug.ini
- composer install
script:
# Validate the composer.json file.
# @link https://getcomposer.org/doc/03-cli.md#validate
- composer validate --no-check-all --strict
# Lint the PHP files against parse errors.
- composer lint
# Check the codebase for any PHPCS errors.
- if [[ "$PHPCS" == 1 ]]; then composer checkcs; fi