forked from ksubileau/color-thief-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (53 loc) · 1.29 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
53
54
55
56
57
58
59
60
61
62
63
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
addons:
apt:
packages:
- graphicsmagick
- libgraphicsmagick1-dev
env:
matrix:
-
matrix:
include:
- php: 7.1
env:
- PHPCS=1
allow_failures:
- php: 7.1
env:
- PHPCS=1
- php: hhvm
before_install:
- |
if [[ "$PHPCS" != 1 ]] && [[ $TRAVIS_PHP_VERSION != 'hhvm' ]] ; then
pear config-set preferred_state beta;
pecl channel-update pecl.php.net;
if [[ ${TRAVIS_PHP_VERSION:0:1} == '7' ]] ; then
printf "\n" | pecl install gmagick;
printf "\n" | pecl install imagick;
else
printf "\n" | pecl install gmagick-1.1.7RC3;
printf "\n" | pecl install imagick;
fi;
fi;
install:
- REMOVE_PACKAGE="friendsofphp/php-cs-fixer"; if [ "$PHPCS" = 1 ]; then REMOVE_PACKAGE="phpunit/phpunit"; fi; composer remove --no-update --no-scripts --dev $REMOVE_PACKAGE
- travis_retry composer install --prefer-dist
- phpenv rehash
script:
- if [[ "$PHPCS" == 1 ]]; then ./vendor/bin/php-cs-fixer --diff --dry-run --verbose --using-cache=no fix; exit $?; fi;
- ./vendor/phpunit/phpunit/phpunit -c tests --coverage-text --verbose
notifications:
email: false