forked from PHPCSStandards/composer-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (42 loc) · 1.21 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
---
language: php
php:
- hhvm
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
# This triggers builds to run on the new (faster) TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
cache:
directories:
- "${HOME}/.composer/cache"
- "${HOME}/.npm/"
env:
global:
- PATH="${HOME}/bin:${PATH}"
matrix:
include:
- php: 7.2
env: SNIFF=1
- php: 5.3
# As 'trusty' is not supporting PHP 5.2/5.3 anymore, we need to force using 'precise'.
dist: precise
allow_failures:
- php: hhvm
fast_finish: true
before_install:
- npm set loglevel error
- npm set progress false
install:
- npm install -g jsonlint
script:
- find . -type f -name "*.json" -print0 | xargs -0 -n1 jsonlint -q
- find . -type f -name "*.php" -print0 | xargs -0 -n1 php -l
- composer validate
- travis_wait composer install --no-interaction --no-progress --no-scripts --no-suggest --optimize-autoloader --prefer-dist --verbose
- if [[ "$SNIFF" == "1" ]]; then composer install-codestandards; fi
- if [[ "$SNIFF" == "1" ]]; then ./vendor/bin/phpcs; fi
- ./vendor/bin/security-checker -n security:check --end-point=http://security.sensiolabs.org/check_lock