forked from ker0x/messenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (38 loc) · 1.56 KB
/
.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
47
48
49
50
51
52
language: php
php:
- 7.0
- 7.1
sudo: false
env:
global:
- DEFAULT=1
- secure: j+1g/twymlVnvpQlsdS+82IY3xR8GIBB7m8bEmpYP6J1ketRToJWANDre6Xb/33JHEzekcr5Kt0F2UDkNzR5rNbviHqYH4EyHA7VZTikqSSelY+lZF7qo1xTyGRnCJZV6c2bri/rPVSjw1FYngNFh5FGCh7PmpzzeQZkhyCG3Cs=
matrix:
fast_finish: true
include:
- php: 7.0
env: PHPCS=1 DEFAULT=0
- php: 7.0
env: COVERALLS=1 DEFAULT=0
- php: 7.1
env: PHPCS=1 DEFAULT=0
- php: 7.1
env: COVERALLS=1 DEFAULT=0
before_install:
- composer self-update
- if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
install:
- composer install --prefer-dist --no-interaction --dev
before_script:
- sh -c "if [ '$PHPCS' = '1' ]; then composer require squizlabs/php_codesniffer:dev-master; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then composer require friendsofphp/php-cs-fixer:2.2; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
script:
- sh -c "if [ '$COVERALLS' = '1' ]; then vendor/bin/phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -v; fi"
- sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit --stderr; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -s --config-set ignore_warnings_on_exit 1; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/php-cs-fixer fix --diff --dry-run; fi"
notifications:
email: false