1 |
efrain |
1 |
language: php
|
|
|
2 |
|
|
|
3 |
# At present the only jobs to run are a php lint.
|
|
|
4 |
# Run this against all supported versions of PHP.
|
|
|
5 |
jobs:
|
|
|
6 |
include:
|
|
|
7 |
# Bionic supports PHP 7.1, 7.2, 7.3, and 7.4.
|
|
|
8 |
# https://docs.travis-ci.com/user/reference/bionic/#php-support
|
|
|
9 |
- php: 7.4
|
|
|
10 |
dist: bionic
|
|
|
11 |
- php: 7.3
|
|
|
12 |
dist: bionic
|
|
|
13 |
- php: 7.2
|
|
|
14 |
dist: bionic
|
|
|
15 |
- php: 7.1
|
|
|
16 |
dist: bionic
|
|
|
17 |
|
|
|
18 |
# Xenial was the last Travis distribution to support PHP 5.6, and 7.0.
|
|
|
19 |
# https://docs.travis-ci.com/user/reference/xenial/#php-support
|
|
|
20 |
- php: 7.0
|
|
|
21 |
dist: xenial
|
|
|
22 |
- php: 5.6
|
|
|
23 |
dist: xenial
|
|
|
24 |
|
|
|
25 |
# Trusty was the last Travis distribution to support PHP 5.4, and 5.5.
|
|
|
26 |
# https://docs.travis-ci.com/user/languages/php/#php-54x---55x-support-is-available-on-precise-and-trusty-only
|
|
|
27 |
- php: 5.5
|
|
|
28 |
dist: trusty
|
|
|
29 |
- php: 5.4
|
|
|
30 |
dist: trusty
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
# Precise was the last Travis distribution to support PHP 5.2, and 5.3.
|
|
|
34 |
# https://docs.travis-ci.com/user/languages/php/#php-52x---53x-support-is-available-on-precise-only
|
|
|
35 |
- php: 5.3
|
|
|
36 |
dist: precise
|
|
|
37 |
|
|
|
38 |
script:
|
|
|
39 |
# Run a php lint across all PHP files.
|
|
|
40 |
- find . -type f -name '*\.php' -print0 | xargs -0 -n1 php -l
|