This repository was archived by the owner on Mar 9, 2020. It is now read-only.
forked from kherge-archive/php-wise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
81 lines (74 loc) · 2.28 KB
/
.travis.yml
File metadata and controls
81 lines (74 loc) · 2.28 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
dist: trusty
# This triggers builds to run on the new TravisCI infrastructure.
# See: https://docs.travis-ci.com/user/reference/overview/#Virtualisation-Environment-vs-Operating-System
sudo: false
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
env:
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
matrix:
- SYMFONY_CONFIG_VERSION=
- SYMFONY_CONFIG_VERSION=2.7.*
- SYMFONY_CONFIG_VERSION=2.8.*
- SYMFONY_CONFIG_VERSION=3.3.*
- SYMFONY_CONFIG_VERSION=3.4.*
- SYMFONY_CONFIG_VERSION=4.0.*
matrix:
include:
- php: 7.1
env: PHP_CS_FIXER=1
exclude:
- php: 5.4
env: SYMFONY_CONFIG_VERSION=3.3.*
- php: 5.4
env: SYMFONY_CONFIG_VERSION=3.4.*
- php: 5.4
env: SYMFONY_CONFIG_VERSION=4.0.*
- php: 5.5
env: SYMFONY_CONFIG_VERSION=4.0.*
- php: 5.6
env: SYMFONY_CONFIG_VERSION=4.0.*
- php: 7.0
env: SYMFONY_CONFIG_VERSION=4.0.*
## Cache composer
cache:
directories:
- $HOME/.composer/cache
before_install:
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry composer selfupdate
- if [ "${SYMFONY_CONFIG_VERSION}" != "" ]; then composer require "symfony/config:${SYMFONY_CONFIG_VERSION}" --no-update; fi;
- travis_retry wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar
- |
if [ -z ${PHP_CS_FIXER+x} ]; then
travis_wait composer \
--dev \
--no-update \
--no-scripts \
--no-interaction \
--no-ansi \
--no-progress \
--ignore-platform-reqs \
remove 'leofeyer/optimize-native-functions-fixer'
fi
install:
- travis_wait 30 composer install $DEFAULT_COMPOSER_FLAGS
script:
- |
if ! [ -z ${PHP_CS_FIXER+x} ]; then
php php-cs-fixer-v2.phar fix \
--config=.php_cs.dist \
--dry-run \
--path-mode=intersection \
--using-cache=no \
--verbose \
$(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}");
fi
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover