forked from php-mime-mail-parser/php-mime-mail-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (29 loc) · 984 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
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
fast_finish: true
sudo: false
env:
- COMPOSER_OPTS=""
- COMPOSER_OPTS="--prefer-lowest"
before_install:
- if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]]; then composer require --dev --no-update phpunit/phpunit ~5 ; fi
before_script:
- if [[ "$TRAVIS_PHP_VERSION" = "5.4" ]]; then pecl install mailparse-2.1.6 ; fi
- if [[ "$TRAVIS_PHP_VERSION" = "5.5" ]]; then pecl install mailparse-2.1.6 ; fi
- if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then pecl install mailparse-2.1.6 ; fi
- if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]]; then pecl install mailparse ; fi
- composer self-update
- composer update $COMPOSER_OPTS
script:
- mkdir -p build/logs
- ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpcs src --standard=psr2
- ./vendor/bin/phpcs tests --standard=psr2
after_script:
- ./vendor/bin/coveralls -v