forked from Monogramm/MauticLdapAuthBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (29 loc) · 850 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
matrix:
allow_failures:
- php: hhvm
install:
- composer install
before_script:
- composer self-update
- composer install --prefer-source
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" -o "$TRAVIS_PHP_VERSION" = "hhvm-nightly" ]; then rm phpspec.yml; fi
script:
- mkdir .reports
# Code style
- php vendor/bin/phpcs ./Config/ ./EventListener/ ./Form ./Integration/ ./Views/ --standard=PSR1 --encoding=utf-8 --report=summary
- php vendor/bin/phpcs ./Config/ ./EventListener/ ./Form ./Integration/ ./Views/ --standard=PSR2 --encoding=utf-8 --report=summary
after_success:
# Send cover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover ./coverage.xml