forked from mtymek/MtMail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (43 loc) · 1.6 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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
- $HOME/.local
- vendor
env:
global:
- COMPOSER_ARGS="--no-interaction"
- LEGACY_DEPS="phpunit/phpunit"
matrix:
fast_finish: true
include:
- php: 5.6
env:
- EXECUTE_CS_CHECK=true
- php: 5.6
env:
- ZEND_SERVICEMANAGER_VERSION="^2.7.5"
- ZEND_EVENTMANAGER_VERSION="^2.2.1"
- php: 7
- php: 7
env:
- ZEND_SERVICEMANAGER_VERSION="^2.7.5"
- ZEND_EVENTMANAGER_VERSION="^2.2.1"
- php: hhvm
- php: hhvm
env:
- ZEND_SERVICEMANAGER_VERSION="^2.7.5"
- ZEND_EVENTMANAGER_VERSION="^2.2.1"
before_install:
- composer self-update
- if [[ $ZEND_SERVICEMANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:$ZEND_SERVICEMANAGER_VERSION" ; fi
- if [[ $ZEND_SERVICEMANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:^3.0.3" ; fi
- if [[ $ZEND_EVENTMANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-eventmanager:$ZEND_EVENTMANAGER_VERSION" ; fi
- if [[ $ZEND_EVENTMANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-eventmanager:^3.0.1" ; fi
install:
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs --prefer-dist --no-scripts
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
script:
- composer test
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs ; fi