-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (26 loc) · 783 Bytes
/
.travis.yml
File metadata and controls
32 lines (26 loc) · 783 Bytes
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
sudo: false
language: php
php:
- 7.1
- 7.2
- nightly
- hhvm
matrix:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true
before_install:
- export ALLOW_FAILURE=1; if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then export ALLOW_FAILURE=0; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then yes '' | pecl install mcrypt-1.0.2; fi
install:
- composer self-update
- make install-deps
script:
- composer validate
- make lint 1>/dev/null
- make check-style
- make test-with-coverage-clover
after_success:
- if [ "$ALLOW_FAILURE" = 0 ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$ALLOW_FAILURE" = 0 ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi