forked from kint-php/kint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 1.29 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
language: php
php:
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
env: BUILD_TEST=false USE_COMPOSER=true
# Add 7.1 with build testing and HHVM on a newer distro.
# 5.1 isn't supported on TravisCI
matrix:
include:
- php: 7.1
env: BUILD_TEST=true USE_COMPOSER=true
- php: hhvm
dist: trusty
- php: hhvm-nightly
dist: trusty
before_install:
- nvm install 8
- phpenv config-rm xdebug.ini || return 0
- if php -r 'exit(version_compare(PHP_VERSION, 5.3) < 0);' ; then export USE_COMPOSER=false; fi
install:
# Travis' HHVM version is too old to support php-cs-fixer, and
# we don't really need it unless we're on the $BUILD_TEST job
- if $USE_COMPOSER -a $BUILD_TEST; then composer remove --dev friendsofphp/php-cs-fixer; elif $BUILD_TEST; then composer install; fi
script:
- php ./tests/basic.php build/kint.php
- php ./tests/basic.php build/kint-aante-light.php
- php ./tests/basic.php build/kint-solarized.php
- php ./tests/basic.php build/kint-solarized-dark.php
- if $USE_COMPOSER; then php ./tests/basic.php vendor/autoload.php; fi
- if $USE_COMPOSER; then php ./vendor/bin/phpunit -d error_reporting=-1 tests; fi
- if $BUILD_TEST; then composer clean && composer format && composer build && git status && git diff-files --quiet --exit-code; fi