-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (36 loc) · 841 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
38
39
40
41
42
43
44
45
46
language: php
os:
- linux
php:
- 7.0
- 7.1
- 7.2
- 7.3
matrix:
fast_finish: true
before_script:
- flags="--prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress "
- composer install $flags -vv
script:
- mkdir .reports
# Code style
- php vendor/bin/phpcs ./src --standard=PSR1 --encoding=utf-8 --report=summary
- php vendor/bin/phpcs ./src --standard=PSR2 --encoding=utf-8 --report=summary
# PHPUnit tests
- php vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-clover=.reports/clover.xml
after_success:
# Send cover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover .reports/clover.xml
cache:
directories:
- $HOME/.composer/cache
addons:
apt:
packages:
- parallel
git:
depth: 1
notifications:
email: