-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
43 lines (33 loc) · 1.09 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
language: php
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
# The default env behaviour: phpunit, no coverage, no style checks
- PHPUNIT=true
matrix:
fast_finish: true
exclude:
# Disable phpunit test on 7.0, reenable with COVERAGE
- php: 7.0
env: PHPUNIT=true
include:
# This reenables php7.0/phpunit test with COVERAGE
- php: 7.0
env: PHPUNIT=true COVERAGE=true
# This runs phpcs on php7.0 - only code style & examples
- php: 7.0
env: CODESTYLE=true EXAMPLES=true
sudo: false
before_script:
- travis_retry composer selfupdate
- travis_retry composer install --prefer-source
- if [ "${COVERAGE}" != "true" ] && [ "${TRAVIS_PHP_VERSION}" != "nightly" ]; then phpenv config-rm xdebug.ini && echo "xdebug disabled"; fi
script:
- if [ "${PHPUNIT}" = "true" ]; then make phpunit-ci; fi
- if [ "${CODESTYLE}" = "true" ]; then make phpcs && echo "PHPCS OK"; fi
- if [ "${EXAMPLES}" = "true" ]; then make test-examples && echo "Examples OK"; fi
after_success:
- if [ "${COVERAGE}" = "true" ]; then make scrutinizer; fi