-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (29 loc) · 879 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
# @file
# .travis.yml - Metrics PHP library Travis CI Integration.
#
language: php
php:
- 7.2
matrix:
fast_finish: true
# Skip tests for tags.
if: tag IS blank
env:
global:
# Set the composer vendor Path.
- COMPOSER_VENDOR_PATH="$HOME/.config/composer/vendor"
# Add executables into PATH.
- PATH="$PATH:$COMPOSER_VENDOR_PATH/bin"
before_install:
- composer self-update
install:
- composer global require "squizlabs/php_codesniffer=*"
- composer global require escapestudios/symfony2-coding-standard:~3
- phpcs --config-set installed_paths "$COMPOSER_VENDOR_PATH/escapestudios/symfony2-coding-standard"
before_script:
- composer install -vvv
script:
- phpcs --ignore=vendor/* --standard=Symfony --warning-severity=0 .
- ./vendor/bin/phpunit --configuration phpunit.xml
after_success:
- travis_retry php vendor/bin/php-coveralls -v