forked from zytzagoo/smtp-validate-email
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (44 loc) · 1.15 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
dist: trusty
language: php
sudo: false
cache:
apt: true
directories:
- $HOME/.composer/cache/files
php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- composer self-update
install: travis_retry make install
script:
- find src tests \( -name '*.php' \) -exec php -l {} \;
- make coverage
jobs:
allow_failures:
- php: nightly
include:
- stage: Coverage
php: 7.1
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
script:
- make coverage
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover ./coverage/clover.xml
after_success:
- bash <(curl -s https://codecov.io/bash) -f ./clover.xml
- stage: CodeStyle
php: 7.1
script:
- ./vendor/bin/phpcs -n