Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit 3372bb0

Browse files
committed
Add Travis CI configuration.
1 parent ccd5947 commit 3372bb0

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.travis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
language: php
2+
3+
matrix:
4+
include:
5+
- php: 5.6
6+
- php: 7.0
7+
- php: 7.1
8+
env:
9+
- ENABLE_XDEBUG=true
10+
- php: 7.1
11+
env:
12+
- ENABLE_DEVTOOLS=true
13+
- php: nightly
14+
allow_failures:
15+
- php: nightly
16+
fast_finish: true
17+
18+
os:
19+
- linux
20+
21+
sudo: false
22+
23+
cache:
24+
directories:
25+
- vendor/
26+
27+
before_script:
28+
- if [[ ! $ENABLE_XDEBUG ]]; then
29+
phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it.";
30+
fi
31+
32+
script:
33+
- composer install
34+
- if [[ $ENABLE_XDEBUG ]]; then
35+
php vendor/bin/phpunit --coverage-clover clover.xml;
36+
else
37+
php vendor/bin/phpunit;
38+
fi
39+
- if [[ $ENABLE_DEVTOOLS ]]; then
40+
php vendor/bin/phpcs --standard=phpcs.xml;
41+
fi
42+
43+
after_script:
44+
>-
45+
if [[ $ENABLE_XDEBUG ]]; then
46+
composer require 'satooshi/php-coveralls:~1.0';
47+
echo 'json_path: coveralls-upload.json' > .coveralls.yml;
48+
php vendor/bin/coveralls -v --coverage_clover=clover.xml;
49+
fi

0 commit comments

Comments
 (0)