forked from joomla/coding-standards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (32 loc) · 843 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
sudo: false
dist: trusty
language: php
env:
global:
- RUN_PHPCS="no"
- RUN_PHPUNIT="yes"
matrix:
include:
- php: 5.6
env: RUN_PHPCS="yes" RUN_PHPUNIT="no"
- php: 5.3
dist: precise
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
allow_failures:
- php: 7.2
- php: nightly
before_script:
- composer self-update
- composer install --prefer-source --no-progress --no-interaction
- ./vendor/bin/phpcs --config-set installed_paths $(pwd)
script:
- if [[ $RUN_PHPUNIT == "yes" ]]; then ./vendor/bin/phpunit --filter Joomla vendor/squizlabs/php_codesniffer/tests/AllTests.php; fi
- if [[ $RUN_PHPCS == "yes" ]]; then ./vendor/bin/phpcs -sp --extensions=php --ignore=*/vendor/* --standard=Joomla */ .; fi
notifications:
email: false